sqltypes 0.1.8__tar.gz → 0.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqltypes-0.1.8 → sqltypes-0.1.9}/PKG-INFO +1 -1
- {sqltypes-0.1.8 → sqltypes-0.1.9}/pyproject.toml +1 -1
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes/strings.py +7 -2
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes.egg-info/PKG-INFO +1 -1
- {sqltypes-0.1.8 → sqltypes-0.1.9}/README.md +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/setup.cfg +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes/__init__.py +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes/__init__.pyi +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes/jsons.py +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes/meta.py +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes.egg-info/SOURCES.txt +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes.egg-info/dependency_links.txt +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes.egg-info/requires.txt +0 -0
- {sqltypes-0.1.8 → sqltypes-0.1.9}/src/sqltypes.egg-info/top_level.txt +0 -0
|
@@ -24,5 +24,10 @@ class ValidatedStr(type):
|
|
|
24
24
|
return x # type: ignore
|
|
25
25
|
return CustomTypeMeta(LiteralType.__name__, (), {}, String, dump=dump, parse=parse)
|
|
26
26
|
|
|
27
|
-
class DecimalStr(
|
|
28
|
-
|
|
27
|
+
class DecimalStr(type):
|
|
28
|
+
def __new__(cls) -> type[TypeDecorator[T]]:
|
|
29
|
+
def dump(x: Decimal) -> str:
|
|
30
|
+
return str(x)
|
|
31
|
+
def parse(x: str):
|
|
32
|
+
return Decimal(x)
|
|
33
|
+
return CustomTypeMeta('DecimalStr', (), {}, String, dump=dump, parse=parse)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|