hmr 0.3.3.2__tar.gz → 0.3.3.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hmr
3
- Version: 0.3.3.2
3
+ Version: 0.3.3.3
4
4
  Summary: Hot Module Reload for Python
5
5
  Project-URL: repository, https://github.com/promplate/pyth-on-line/tree/reactivity
6
6
  Requires-Python: >=3.12
@@ -6,7 +6,7 @@ description = "Hot Module Reload for Python"
6
6
  dependencies = [
7
7
  "watchfiles>=0.21,<2 ; sys_platform != 'emscripten'",
8
8
  ]
9
- version = "0.3.3.2"
9
+ version = "0.3.3.3"
10
10
 
11
11
  [project.scripts]
12
12
  hmr = "reactivity.hmr:cli"
@@ -312,4 +312,4 @@ def cli():
312
312
  SyncReloader(entry).keep_watching_until_interrupt()
313
313
 
314
314
 
315
- __version__ = "0.3.3.2"
315
+ __version__ = "0.3.3.3"
@@ -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[Path(file).resolve()]
33
+ module = ReactiveModule.instances.get(Path(file).resolve())
34
34
 
35
- if not isinstance(module, ReactiveModule):
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
File without changes
File without changes
File without changes
File without changes
File without changes