statikk 0.1.19__py3-none-any.whl → 0.1.20__py3-none-any.whl
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.
- statikk/engine.py +3 -0
- {statikk-0.1.19.dist-info → statikk-0.1.20.dist-info}/METADATA +1 -1
- {statikk-0.1.19.dist-info → statikk-0.1.20.dist-info}/RECORD +6 -6
- {statikk-0.1.19.dist-info → statikk-0.1.20.dist-info}/WHEEL +0 -0
- {statikk-0.1.19.dist-info → statikk-0.1.20.dist-info}/licenses/LICENSE.txt +0 -0
- {statikk-0.1.19.dist-info → statikk-0.1.20.dist-info}/top_level.txt +0 -0
statikk/engine.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import os
|
2
|
+
import decimal
|
2
3
|
from datetime import datetime
|
3
4
|
from typing import Any, Dict, Type, Optional, List, Union
|
4
5
|
|
@@ -549,6 +550,8 @@ class Table:
|
|
549
550
|
return {self._deserialize_value(item, item_annotation) for item in value}
|
550
551
|
if isinstance(value, dict):
|
551
552
|
return {key: self._deserialize_value(item, annotation) for key, item in value.items() if item is not None}
|
553
|
+
if isinstance(value, decimal.Decimal):
|
554
|
+
return float(value)
|
552
555
|
return value
|
553
556
|
|
554
557
|
def _serialize_value(self, value: Any):
|
@@ -1,12 +1,12 @@
|
|
1
1
|
statikk/__init__.py,sha256=pH5i4Fj1tbXLqLtTVIdoojiplZssQn0nnud8-HXodRE,577
|
2
2
|
statikk/conditions.py,sha256=63FYMR-UUaE-ZJEb_8CU721CQTwhajq39-BbokmKeMA,2166
|
3
|
-
statikk/engine.py,sha256=
|
3
|
+
statikk/engine.py,sha256=bcUJfI9G1Nwe86NIrCwkB_Ni_fxdc_KBqa1ny2wJBzE,31998
|
4
4
|
statikk/expressions.py,sha256=boAeGxZj2cDsXxoiX3IIEzfX9voSMQngi4-rE_jYeuE,12233
|
5
5
|
statikk/fields.py,sha256=uLGD3xEnz2nqQY6EwG8Dd7pnRMMVP4PU2Z2I-uGNaTA,150
|
6
6
|
statikk/models.py,sha256=1qnj2VmJivo4vJtI2UnlK85d9imuh_IiIp3UC1K7Y3I,17207
|
7
7
|
statikk/typing.py,sha256=laOlOpWOm9_sOj4hhdZnGTUZRiq8760_B9I9B3wBhz8,750
|
8
|
-
statikk-0.1.
|
9
|
-
statikk-0.1.
|
10
|
-
statikk-0.1.
|
11
|
-
statikk-0.1.
|
12
|
-
statikk-0.1.
|
8
|
+
statikk-0.1.20.dist-info/licenses/LICENSE.txt,sha256=uSH_2Hpb2Bigy5_HhBliN2fZbBU64G3ERM5zzhKPUEE,1078
|
9
|
+
statikk-0.1.20.dist-info/METADATA,sha256=GOv6D1HUYYGNbs-5UgWLS7C1wahrMZ7L39r4Gzni9T4,3183
|
10
|
+
statikk-0.1.20.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
11
|
+
statikk-0.1.20.dist-info/top_level.txt,sha256=etKmBbjzIlLpSefXoiOfhWGEgvqUEALaFwCjFDBD9YI,8
|
12
|
+
statikk-0.1.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|