hmr 0.6.0.2__tar.gz → 0.6.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hmr
3
- Version: 0.6.0.2
3
+ Version: 0.6.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
@@ -7,7 +7,7 @@ description = "Hot Module Reload for Python"
7
7
  dependencies = [
8
8
  "watchfiles>=0.21,<2 ; sys_platform != 'emscripten'",
9
9
  ]
10
- version = "0.6.0.2"
10
+ version = "0.6.1"
11
11
 
12
12
  [project.scripts]
13
13
  hmr = "reactivity.hmr:cli"
@@ -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
- if self._signals[key].set(value):
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):
@@ -344,4 +344,4 @@ def cli():
344
344
  reloader.keep_watching_until_interrupt()
345
345
 
346
346
 
347
- __version__ = "0.6.0.2"
347
+ __version__ = "0.6.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
File without changes
File without changes