edgygraph 0.0.11__py3-none-any.whl → 0.0.17__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.
- edgygraph/states.py +4 -4
- {edgygraph-0.0.11.dist-info → edgygraph-0.0.17.dist-info}/METADATA +1 -1
- {edgygraph-0.0.11.dist-info → edgygraph-0.0.17.dist-info}/RECORD +5 -5
- {edgygraph-0.0.11.dist-info → edgygraph-0.0.17.dist-info}/WHEEL +0 -0
- {edgygraph-0.0.11.dist-info → edgygraph-0.0.17.dist-info}/top_level.txt +0 -0
edgygraph/states.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from pydantic import BaseModel, Field
|
|
1
|
+
from pydantic import BaseModel, Field, ConfigDict
|
|
2
2
|
from typing import TypeVar, AsyncIterator, Protocol, Generic
|
|
3
3
|
from types import TracebackType
|
|
4
4
|
|
|
@@ -20,8 +20,8 @@ class Stream(AsyncIterator[T], Protocol):
|
|
|
20
20
|
await self.aclose()
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
S = TypeVar('S', bound=Stream, contravariant=True, default=Stream)
|
|
24
|
-
|
|
25
23
|
class GraphState(BaseModel, Generic[T]):
|
|
26
24
|
vars: dict[str, object] = Field(default_factory=dict)
|
|
27
|
-
streams: dict[str, T] = Field(default_factory=dict)
|
|
25
|
+
streams: dict[str, 'Stream[T]'] = Field(default_factory=dict)
|
|
26
|
+
|
|
27
|
+
model_config = ConfigDict(arbitrary_types_allowed=True)
|
|
@@ -3,8 +3,8 @@ edgygraph/edges.py,sha256=J_zxFfQaGuQuMg3TohuHlfcDlCo5lpoa3tHowe1d-Jk,476
|
|
|
3
3
|
edgygraph/graph.py,sha256=cvDsyAXGCr4RfWIOcM7XFy9_L6gwa-qbRlan1Z7BPIU,1136
|
|
4
4
|
edgygraph/nodes.py,sha256=tIWg59M1n3D7u7EvloiVt6SioZZj5GW0m6zAayksy3M,252
|
|
5
5
|
edgygraph/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
edgygraph/states.py,sha256=
|
|
7
|
-
edgygraph-0.0.
|
|
8
|
-
edgygraph-0.0.
|
|
9
|
-
edgygraph-0.0.
|
|
10
|
-
edgygraph-0.0.
|
|
6
|
+
edgygraph/states.py,sha256=m7tL0eNvf4JRDOofMy4wNUlA2bJ4zfwqSyosJvNducw,827
|
|
7
|
+
edgygraph-0.0.17.dist-info/METADATA,sha256=HN4Hi3nNJVILqhfwUikheTfiZf9thuT-mszT9NYgv8M,139
|
|
8
|
+
edgygraph-0.0.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
edgygraph-0.0.17.dist-info/top_level.txt,sha256=1aTnTyO0rVyypQxuzthXouPY8XY6ybCuRrRvS4FNLeY,10
|
|
10
|
+
edgygraph-0.0.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|