hmr 0.5.2.2__py3-none-any.whl → 0.5.3__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.5.2.2
3
+ Version: 0.5.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
@@ -1,14 +1,14 @@
1
- hmr-0.5.2.2.dist-info/METADATA,sha256=oweBlpOxlLru70fMiG1JKAx6aS-B1-e8Xx4qATH2EwI,2001
2
- hmr-0.5.2.2.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- hmr-0.5.2.2.dist-info/entry_points.txt,sha256=g_T0uJ43WgsdG14kkkdaBQuIL0HO-m1qvtjXMP6d060,59
1
+ hmr-0.5.3.dist-info/METADATA,sha256=Y3kB1iJBhlnFuwz18jp1wn98jNXwBo_UtXOuj4OpR6Q,1999
2
+ hmr-0.5.3.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ hmr-0.5.3.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=jJLEq88w5ag2cXuD1T118uEjnEg37_mqvWmFkb47KVY,1300
6
6
  reactivity/helpers.py,sha256=rcrCXy1mmlei-if_BN4nSgS2IG9kBj-jq1YRwEfcITo,5329
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=sKDQV7uKRVoDifTZKrLQGZP-fzgYbdVjfEOC6ki4NKY,2280
10
- reactivity/hmr/core.py,sha256=U6aq96IP1Ox1B486F_HdI9qYUF6q2bC5rsH6xpdafhw,11693
10
+ reactivity/hmr/core.py,sha256=_H4PvJdNe328AlA84WkGxYJHehJBDvS5yqwyIRywCWo,11714
11
11
  reactivity/hmr/hooks.py,sha256=jIFpe4CNxfaS9RcR4OIodx_sOZlnJ_IA1T1RtHPXhwU,945
12
12
  reactivity/hmr/utils.py,sha256=h9m7iRXlvsLTrHoXV9gEVbhz3XsPK4KgnStYoCAWE5I,1616
13
- reactivity/primitives.py,sha256=Cq1tBNmVFCjnCq30TCku-l1JimlC5fJh9Z2GHcfWNUY,6483
14
- hmr-0.5.2.2.dist-info/RECORD,,
13
+ reactivity/primitives.py,sha256=alFH1W7y2UHgXI3Vlk8GFdIlcFTcQ3Q9cpz2Y1vDZuQ,6553
14
+ hmr-0.5.3.dist-info/RECORD,,
reactivity/hmr/core.py CHANGED
@@ -335,10 +335,10 @@ def cli():
335
335
  entry = sys.argv[0]
336
336
  if not (path := Path(entry)).is_file():
337
337
  raise FileNotFoundError(path.resolve())
338
- sys.path.insert(0, ".")
338
+ sys.path.insert(0, str(path.parent.resolve()))
339
339
  reloader = SyncReloader(entry)
340
340
  sys.modules["__main__"] = reloader.entry_module
341
341
  reloader.keep_watching_until_interrupt()
342
342
 
343
343
 
344
- __version__ = "0.5.2.2"
344
+ __version__ = "0.5.3"
reactivity/primitives.py CHANGED
@@ -6,9 +6,11 @@ from weakref import WeakKeyDictionary, WeakSet
6
6
  def _equal(a, b):
7
7
  if a is b:
8
8
  return True
9
- comparison_result = a == b
10
- for _ in range(3): # pandas DataFrame's .all() returns a Series, which is still incompatible :(
9
+ comparison_result: Any = False
10
+ for i in range(3): # pandas DataFrame's .all() returns a Series, which is still incompatible :(
11
11
  try:
12
+ if i == 0:
13
+ comparison_result = a == b
12
14
  if comparison_result:
13
15
  return True
14
16
  except ValueError as e:
File without changes