hmr 0.4.0__py3-none-any.whl → 0.4.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hmr
3
- Version: 0.4.0
3
+ Version: 0.4.0.1
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
@@ -1,14 +1,14 @@
1
- hmr-0.4.0.dist-info/METADATA,sha256=SrlGz7FGOOGLKRHK7XNuluX_-FkXYvF0DeL12Qaa7DM,258
2
- hmr-0.4.0.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- hmr-0.4.0.dist-info/entry_points.txt,sha256=g_T0uJ43WgsdG14kkkdaBQuIL0HO-m1qvtjXMP6d060,59
1
+ hmr-0.4.0.1.dist-info/METADATA,sha256=jO4oStYy7M8q_RJXVWSiX-fMvpZFz8M8QqO2ARmPz_E,260
2
+ hmr-0.4.0.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ hmr-0.4.0.1.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=1KCpre2HTFZrngEKkI2HwSFMkCmsUCq2aPEbp0y3kKg,5140
7
7
  reactivity/hmr/__init__.py,sha256=S5ZIHqCRpevdzWuhS0aCua_S8F0LkK0YNg6IgeTScFQ,177
8
8
  reactivity/hmr/__main__.py,sha256=uIcyjR5gMFIXH_3hS0B3SD00RirVf7GIct-uItx675o,64
9
9
  reactivity/hmr/api.py,sha256=USwQUtMIdhGRJFGYTp-S23ZelbB39FkV9bB0UEqlAvc,1579
10
- reactivity/hmr/core.py,sha256=4bGNcugfk1pKMngw_NMyW8HFogVmorlHyV3utyBHYF0,11488
10
+ reactivity/hmr/core.py,sha256=0K8QTZ1CZFzP41i6xqtyAbwENTQzdBQbIzkqDCNc9cE,11559
11
11
  reactivity/hmr/hooks.py,sha256=-yLr5ktiyqPb1nDbHsgv6-c_ZkziBjNqCU-0PCfXGYU,592
12
12
  reactivity/hmr/utils.py,sha256=-PO-LMP4sc3IP-Bn_baq2w9IFWBZ3zGesgRn5wR6bS0,1555
13
13
  reactivity/primitives.py,sha256=mB6cbHKDqtilOfgaEhshtRWJq9s0nPEKqRK0hfCoyFE,5671
14
- hmr-0.4.0.dist-info/RECORD,,
14
+ hmr-0.4.0.1.dist-info/RECORD,,
reactivity/hmr/core.py CHANGED
@@ -322,7 +322,9 @@ class AsyncReloader(BaseReloader):
322
322
  del self._stop_event
323
323
 
324
324
  async def keep_watching_until_interrupt(self):
325
+ call_pre_reload_hooks()
325
326
  with suppress(KeyboardInterrupt), create_effect(self.run_entry_file):
327
+ call_post_reload_hooks()
326
328
  await self.start_watching()
327
329
 
328
330
 
@@ -337,4 +339,4 @@ def cli():
337
339
  SyncReloader(entry).keep_watching_until_interrupt()
338
340
 
339
341
 
340
- __version__ = "0.4.0"
342
+ __version__ = "0.4.0.1"
File without changes