hmr 0.6.0.2__py3-none-any.whl → 0.6.1.1__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.
- {hmr-0.6.0.2.dist-info → hmr-0.6.1.1.dist-info}/METADATA +7 -1
- {hmr-0.6.0.2.dist-info → hmr-0.6.1.1.dist-info}/RECORD +6 -6
- reactivity/helpers.py +3 -1
- reactivity/hmr/core.py +2 -2
- {hmr-0.6.0.2.dist-info → hmr-0.6.1.1.dist-info}/WHEEL +0 -0
- {hmr-0.6.0.2.dist-info → hmr-0.6.1.1.dist-info}/entry_points.txt +0 -0
@@ -1,7 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hmr
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.1.1
|
4
4
|
Summary: Hot Module Reload for Python
|
5
|
+
Keywords: reactive-programming,reload,signals,hmr
|
6
|
+
Classifier: Development Status :: 5 - Production/Stable
|
7
|
+
Classifier: Intended Audience :: Developers
|
8
|
+
Classifier: Operating System :: OS Independent
|
9
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
10
|
+
Classifier: Typing :: Typed
|
5
11
|
Project-URL: repository, https://github.com/promplate/pyth-on-line/tree/reactivity
|
6
12
|
Requires-Python: >=3.12
|
7
13
|
Requires-Dist: watchfiles<2,>=0.21; sys_platform != "emscripten"
|
@@ -1,15 +1,15 @@
|
|
1
|
-
hmr-0.6.
|
2
|
-
hmr-0.6.
|
3
|
-
hmr-0.6.
|
1
|
+
hmr-0.6.1.1.dist-info/METADATA,sha256=EvGt6omw3E6J3LWOsVeUFSVOh3OL8nXtGLZqYwxAL5M,2299
|
2
|
+
hmr-0.6.1.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
hmr-0.6.1.1.dist-info/entry_points.txt,sha256=g_T0uJ43WgsdG14kkkdaBQuIL0HO-m1qvtjXMP6d060,59
|
4
4
|
reactivity/__init__.py,sha256=pX-RUzkezCC1x4eOWGxNhXbwrbvBLP_3pQuZr9eZz1Y,300
|
5
5
|
reactivity/context.py,sha256=hgf3U4ihtGSVZ8mGvXcjKcO1U5i7lwX-LadDraAjdNg,1402
|
6
6
|
reactivity/functional.py,sha256=jJLEq88w5ag2cXuD1T118uEjnEg37_mqvWmFkb47KVY,1300
|
7
|
-
reactivity/helpers.py,sha256=
|
7
|
+
reactivity/helpers.py,sha256=lLZMc43om6SYufUytYMtIWGA7cOJH3ko2xLyfNm84SM,5978
|
8
8
|
reactivity/hmr/__init__.py,sha256=S5ZIHqCRpevdzWuhS0aCua_S8F0LkK0YNg6IgeTScFQ,177
|
9
9
|
reactivity/hmr/__main__.py,sha256=uIcyjR5gMFIXH_3hS0B3SD00RirVf7GIct-uItx675o,64
|
10
10
|
reactivity/hmr/api.py,sha256=ypS_LyzMH1JbN5cSwamAJ0HEcHMOY7BOIINuJmWJwo8,2283
|
11
|
-
reactivity/hmr/core.py,sha256=
|
11
|
+
reactivity/hmr/core.py,sha256=lpjeRceAEzKMBVG_ZrS_rmIhXQyVksSpsmOPcjsXnRc,11840
|
12
12
|
reactivity/hmr/hooks.py,sha256=jIFpe4CNxfaS9RcR4OIodx_sOZlnJ_IA1T1RtHPXhwU,945
|
13
13
|
reactivity/hmr/utils.py,sha256=h9m7iRXlvsLTrHoXV9gEVbhz3XsPK4KgnStYoCAWE5I,1616
|
14
14
|
reactivity/primitives.py,sha256=_I6mG1qPBH6Vsktlf3-0mXpRO6L1hFhbfRtNMrpVxS8,6906
|
15
|
-
hmr-0.6.
|
15
|
+
hmr-0.6.1.1.dist-info/RECORD,,
|
reactivity/helpers.py
CHANGED
@@ -99,7 +99,9 @@ class Reactive[K, V](Subscribable, MutableMapping[K, V]):
|
|
99
99
|
|
100
100
|
def __setitem__(self, key: K, value: V):
|
101
101
|
with Batch(force_flush=False, context=self.context):
|
102
|
-
|
102
|
+
old_value = self._signals[key].get(track=False)
|
103
|
+
self._signals[key].set(value)
|
104
|
+
if old_value is self.UNSET:
|
103
105
|
self.notify()
|
104
106
|
|
105
107
|
def __delitem__(self, key: K):
|
reactivity/hmr/core.py
CHANGED
@@ -127,7 +127,7 @@ class ReactiveModule(ModuleType):
|
|
127
127
|
except KeyError as e:
|
128
128
|
if name != "__path__" and (getattr := self.__namespace_proxy.get("__getattr__")):
|
129
129
|
return getattr(name)
|
130
|
-
raise AttributeError(*e.args) from
|
130
|
+
raise AttributeError(*e.args) from None
|
131
131
|
|
132
132
|
def __setattr__(self, name: str, value):
|
133
133
|
if is_called_internally():
|
@@ -344,4 +344,4 @@ def cli():
|
|
344
344
|
reloader.keep_watching_until_interrupt()
|
345
345
|
|
346
346
|
|
347
|
-
__version__ = "0.6.
|
347
|
+
__version__ = "0.6.1.1"
|
File without changes
|
File without changes
|