hmr 0.3.3.2__py3-none-any.whl → 0.3.3.4__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.3.3.2.dist-info → hmr-0.3.3.4.dist-info}/METADATA +1 -1
- {hmr-0.3.3.2.dist-info → hmr-0.3.3.4.dist-info}/RECORD +6 -6
- reactivity/hmr/core.py +3 -1
- reactivity/hmr/utils.py +2 -2
- {hmr-0.3.3.2.dist-info → hmr-0.3.3.4.dist-info}/WHEEL +0 -0
- {hmr-0.3.3.2.dist-info → hmr-0.3.3.4.dist-info}/entry_points.txt +0 -0
@@ -1,13 +1,13 @@
|
|
1
|
-
hmr-0.3.3.
|
2
|
-
hmr-0.3.3.
|
3
|
-
hmr-0.3.3.
|
1
|
+
hmr-0.3.3.4.dist-info/METADATA,sha256=qq-JxvntRdTdZHN71E35GRMR2khQ6o7hMDQtWAewoMY,260
|
2
|
+
hmr-0.3.3.4.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
hmr-0.3.3.4.dist-info/entry_points.txt,sha256=g_T0uJ43WgsdG14kkkdaBQuIL0HO-m1qvtjXMP6d060,59
|
4
4
|
reactivity/__init__.py,sha256=pX-RUzkezCC1x4eOWGxNhXbwrbvBLP_3pQuZr9eZz1Y,300
|
5
5
|
reactivity/functional.py,sha256=U06vshcVhZ0sb218gcmHtEhfgTNAGtQ7zyvPz2w5qKM,1292
|
6
6
|
reactivity/helpers.py,sha256=7gwsIKKrjEahSz9G9oR4s1LdYXQTCIMO0k4UGXGla9Y,3714
|
7
7
|
reactivity/hmr/__init__.py,sha256=S5ZIHqCRpevdzWuhS0aCua_S8F0LkK0YNg6IgeTScFQ,177
|
8
8
|
reactivity/hmr/api.py,sha256=-0-6Tn0AVkaDs7_qrCCd9TXxRTPDMDB08-UYfepTdec,1644
|
9
|
-
reactivity/hmr/core.py,sha256=
|
9
|
+
reactivity/hmr/core.py,sha256=xwpJB-kJdNqhCA6g5WtVYl2gAKeL1-oK3gebnqGOI_4,10358
|
10
10
|
reactivity/hmr/hooks.py,sha256=-yLr5ktiyqPb1nDbHsgv6-c_ZkziBjNqCU-0PCfXGYU,592
|
11
|
-
reactivity/hmr/utils.py,sha256=
|
11
|
+
reactivity/hmr/utils.py,sha256=zM7X5I8ywOguOt20uE55INWOGen3FuJZDAvgouu7lI8,1550
|
12
12
|
reactivity/primitives.py,sha256=DR2waJbzhVKOioHXMliE4FIsxQUq7DZA0umPrlvchA4,4217
|
13
|
-
hmr-0.3.3.
|
13
|
+
hmr-0.3.3.4.dist-info/RECORD,,
|
reactivity/hmr/core.py
CHANGED
@@ -91,6 +91,8 @@ class ReactiveModule(ModuleType):
|
|
91
91
|
try:
|
92
92
|
return self.__namespace_proxy[name]
|
93
93
|
except KeyError as e:
|
94
|
+
if getattr := self.__namespace_proxy.get("__getattr__"):
|
95
|
+
return getattr(name)
|
94
96
|
raise AttributeError(*e.args) from e
|
95
97
|
|
96
98
|
def __setattr__(self, name: str, value):
|
@@ -312,4 +314,4 @@ def cli():
|
|
312
314
|
SyncReloader(entry).keep_watching_until_interrupt()
|
313
315
|
|
314
316
|
|
315
|
-
__version__ = "0.3.3.
|
317
|
+
__version__ = "0.3.3.4"
|
reactivity/hmr/utils.py
CHANGED
@@ -30,9 +30,9 @@ def clear_memos():
|
|
30
30
|
def cache_across_reloads[T](func: Callable[[], T]) -> Callable[[], T]:
|
31
31
|
file = getsourcefile(func)
|
32
32
|
assert file is not None
|
33
|
-
module = ReactiveModule.instances
|
33
|
+
module = ReactiveModule.instances.get(Path(file).resolve())
|
34
34
|
|
35
|
-
if
|
35
|
+
if module is None:
|
36
36
|
from functools import cache
|
37
37
|
|
38
38
|
return cache(func) # type: ignore
|
File without changes
|
File without changes
|