statikk 0.1.24__py3-none-any.whl → 0.1.25__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/models.py +3 -2
- {statikk-0.1.24.dist-info → statikk-0.1.25.dist-info}/METADATA +1 -1
- {statikk-0.1.24.dist-info → statikk-0.1.25.dist-info}/RECORD +6 -6
- {statikk-0.1.24.dist-info → statikk-0.1.25.dist-info}/WHEEL +0 -0
- {statikk-0.1.24.dist-info → statikk-0.1.25.dist-info}/licenses/LICENSE.txt +0 -0
- {statikk-0.1.24.dist-info → statikk-0.1.25.dist-info}/top_level.txt +0 -0
statikk/models.py
CHANGED
@@ -136,7 +136,7 @@ class TrackingMixin:
|
|
136
136
|
def _make_hashable(self, value: Any) -> Any:
|
137
137
|
if isinstance(value, (str, int, float, bool, type(None))):
|
138
138
|
return value
|
139
|
-
elif isinstance(value, list
|
139
|
+
elif isinstance(value, (list, set, tuple)):
|
140
140
|
return tuple(self._make_hashable(item) for item in value)
|
141
141
|
elif isinstance(value, dict):
|
142
142
|
return tuple((self._make_hashable(k), self._make_hashable(v)) for k, v in sorted(value.items()))
|
@@ -148,8 +148,9 @@ class TrackingMixin:
|
|
148
148
|
try:
|
149
149
|
return hash(value)
|
150
150
|
except TypeError:
|
151
|
+
origin = getattr(value, "__origin__", "unknown")
|
151
152
|
logger.warning(
|
152
|
-
f"{type(value)} is unhashable, tracking will be ignored for this item. Consider implementing the ChangeTrackerMixin for this type."
|
153
|
+
f"{type(value)} is unhashable at origin {origin}, tracking will be ignored for this item. Consider implementing the ChangeTrackerMixin for this type. "
|
153
154
|
)
|
154
155
|
return None
|
155
156
|
return value
|
@@ -3,10 +3,10 @@ statikk/conditions.py,sha256=63FYMR-UUaE-ZJEb_8CU721CQTwhajq39-BbokmKeMA,2166
|
|
3
3
|
statikk/engine.py,sha256=zcoSR_exARya7_taiKd94lc0H8rQbNpdcOrKQmCrMKs,32106
|
4
4
|
statikk/expressions.py,sha256=boAeGxZj2cDsXxoiX3IIEzfX9voSMQngi4-rE_jYeuE,12233
|
5
5
|
statikk/fields.py,sha256=uLGD3xEnz2nqQY6EwG8Dd7pnRMMVP4PU2Z2I-uGNaTA,150
|
6
|
-
statikk/models.py,sha256=
|
6
|
+
statikk/models.py,sha256=zZgvv-z-G-XKl23028Lx403jAUaEq8AtyYb3oQc6blc,17649
|
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.25.dist-info/licenses/LICENSE.txt,sha256=uSH_2Hpb2Bigy5_HhBliN2fZbBU64G3ERM5zzhKPUEE,1078
|
9
|
+
statikk-0.1.25.dist-info/METADATA,sha256=xndOSnhTTgn1na2xvANN0Ckpi9pRx0bszNgyiZMbZzU,3183
|
10
|
+
statikk-0.1.25.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
|
11
|
+
statikk-0.1.25.dist-info/top_level.txt,sha256=etKmBbjzIlLpSefXoiOfhWGEgvqUEALaFwCjFDBD9YI,8
|
12
|
+
statikk-0.1.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|