hmr 0.6.0__py3-none-any.whl → 0.6.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.
- {hmr-0.6.0.dist-info → hmr-0.6.0.1.dist-info}/METADATA +1 -1
- {hmr-0.6.0.dist-info → hmr-0.6.0.1.dist-info}/RECORD +7 -7
- reactivity/context.py +3 -7
- reactivity/helpers.py +2 -1
- reactivity/hmr/core.py +1 -1
- {hmr-0.6.0.dist-info → hmr-0.6.0.1.dist-info}/WHEEL +0 -0
- {hmr-0.6.0.dist-info → hmr-0.6.0.1.dist-info}/entry_points.txt +0 -0
@@ -1,15 +1,15 @@
|
|
1
|
-
hmr-0.6.0.dist-info/METADATA,sha256=
|
2
|
-
hmr-0.6.0.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
-
hmr-0.6.0.dist-info/entry_points.txt,sha256=g_T0uJ43WgsdG14kkkdaBQuIL0HO-m1qvtjXMP6d060,59
|
1
|
+
hmr-0.6.0.1.dist-info/METADATA,sha256=80LsOLy_tmxX-O6-QfjEz72F0hiT1qtG99CJj0MDeVk,2001
|
2
|
+
hmr-0.6.0.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
hmr-0.6.0.1.dist-info/entry_points.txt,sha256=g_T0uJ43WgsdG14kkkdaBQuIL0HO-m1qvtjXMP6d060,59
|
4
4
|
reactivity/__init__.py,sha256=pX-RUzkezCC1x4eOWGxNhXbwrbvBLP_3pQuZr9eZz1Y,300
|
5
|
-
reactivity/context.py,sha256=
|
5
|
+
reactivity/context.py,sha256=mhQE1dXNCk_BbLLv6LQcOWsHh9rl9LyqTdMf7UF6GtY,1160
|
6
6
|
reactivity/functional.py,sha256=jJLEq88w5ag2cXuD1T118uEjnEg37_mqvWmFkb47KVY,1300
|
7
|
-
reactivity/helpers.py,sha256=
|
7
|
+
reactivity/helpers.py,sha256=ZhpsIYoUyUSWaAsvCP7BlYxGhxySxHaU1WdRtHOn95k,5882
|
8
8
|
reactivity/hmr/__init__.py,sha256=S5ZIHqCRpevdzWuhS0aCua_S8F0LkK0YNg6IgeTScFQ,177
|
9
9
|
reactivity/hmr/__main__.py,sha256=uIcyjR5gMFIXH_3hS0B3SD00RirVf7GIct-uItx675o,64
|
10
10
|
reactivity/hmr/api.py,sha256=ypS_LyzMH1JbN5cSwamAJ0HEcHMOY7BOIINuJmWJwo8,2283
|
11
|
-
reactivity/hmr/core.py,sha256=
|
11
|
+
reactivity/hmr/core.py,sha256=MDgcWQSNuogZA_AEBTq7TC1DsyBCni71Gk_0kVuBSwc,11837
|
12
12
|
reactivity/hmr/hooks.py,sha256=jIFpe4CNxfaS9RcR4OIodx_sOZlnJ_IA1T1RtHPXhwU,945
|
13
13
|
reactivity/hmr/utils.py,sha256=h9m7iRXlvsLTrHoXV9gEVbhz3XsPK4KgnStYoCAWE5I,1616
|
14
14
|
reactivity/primitives.py,sha256=z69PqQxizN2sbursmpKW5SlWshlZZzdLgFH9u8E5eZc,6857
|
15
|
-
hmr-0.6.0.dist-info/RECORD,,
|
15
|
+
hmr-0.6.0.1.dist-info/RECORD,,
|
reactivity/context.py
CHANGED
@@ -6,7 +6,7 @@ from functools import partial
|
|
6
6
|
from typing import TYPE_CHECKING, NamedTuple
|
7
7
|
|
8
8
|
if TYPE_CHECKING:
|
9
|
-
from .primitives import BaseComputation
|
9
|
+
from .primitives import BaseComputation
|
10
10
|
|
11
11
|
|
12
12
|
class Context(NamedTuple):
|
@@ -28,20 +28,14 @@ class Context(NamedTuple):
|
|
28
28
|
|
29
29
|
@property
|
30
30
|
def batch(self):
|
31
|
-
from .primitives import Batch
|
32
|
-
|
33
31
|
return partial(Batch, context=self)
|
34
32
|
|
35
33
|
@property
|
36
34
|
def signal(self):
|
37
|
-
from .primitives import Signal
|
38
|
-
|
39
35
|
return partial(Signal, context=self)
|
40
36
|
|
41
37
|
@property
|
42
38
|
def effect(self):
|
43
|
-
from .primitives import Effect
|
44
|
-
|
45
39
|
return partial(Effect, context=self)
|
46
40
|
|
47
41
|
|
@@ -50,3 +44,5 @@ def new_context():
|
|
50
44
|
|
51
45
|
|
52
46
|
default_context = new_context()
|
47
|
+
|
48
|
+
from .primitives import Batch, Effect, Signal
|
reactivity/helpers.py
CHANGED
@@ -127,7 +127,8 @@ class Reactive[K, V](Subscribable, MutableMapping[K, V]):
|
|
127
127
|
|
128
128
|
def items(self):
|
129
129
|
self.track()
|
130
|
-
|
130
|
+
unset = self.UNSET
|
131
|
+
return ({k: v for k, signal in self._signals.items() if (v := signal.get()) is not unset}).items()
|
131
132
|
|
132
133
|
|
133
134
|
class DerivedProperty[T, I]:
|
reactivity/hmr/core.py
CHANGED
File without changes
|
File without changes
|