hmr 0.3.2__tar.gz → 0.3.2.1__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.
- {hmr-0.3.2 → hmr-0.3.2.1}/PKG-INFO +1 -1
- {hmr-0.3.2 → hmr-0.3.2.1}/pyproject.toml +1 -1
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/hmr/core.py +3 -4
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/__init__.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/functional.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/helpers.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/hmr/__init__.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/hmr/api.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/hmr/hooks.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/hmr/utils.py +0 -0
- {hmr-0.3.2 → hmr-0.3.2.1}/reactivity/primitives.py +0 -0
@@ -258,8 +258,6 @@ class SyncReloader(BaseReloader):
|
|
258
258
|
for events in watch(self.entry, *self.includes, watch_filter=self.watch_filter, stop_event=self._stop_event):
|
259
259
|
self.on_events(events)
|
260
260
|
|
261
|
-
# this should only be called when the stop event is set
|
262
|
-
assert self._stop_event.is_set()
|
263
261
|
del self._stop_event
|
264
262
|
|
265
263
|
def keep_watching_until_interrupt(self):
|
@@ -278,7 +276,6 @@ class AsyncReloader(BaseReloader):
|
|
278
276
|
|
279
277
|
def stop_watching(self):
|
280
278
|
self._stop_event.set()
|
281
|
-
del self._stop_event
|
282
279
|
|
283
280
|
async def start_watching(self):
|
284
281
|
from watchfiles import awatch
|
@@ -286,6 +283,8 @@ class AsyncReloader(BaseReloader):
|
|
286
283
|
async for events in awatch(self.entry, *self.includes, watch_filter=self.watch_filter, stop_event=self._stop_event):
|
287
284
|
self.on_events(events)
|
288
285
|
|
286
|
+
del self._stop_event
|
287
|
+
|
289
288
|
async def keep_watching_until_interrupt(self):
|
290
289
|
with suppress(KeyboardInterrupt):
|
291
290
|
self.run_entry_file()
|
@@ -304,4 +303,4 @@ def cli():
|
|
304
303
|
SyncReloader(entry).keep_watching_until_interrupt()
|
305
304
|
|
306
305
|
|
307
|
-
__version__ = "0.3.2"
|
306
|
+
__version__ = "0.3.2.1"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|