egglog 11.0.0__cp313-cp313-win_amd64.whl → 11.1.0__cp313-cp313-win_amd64.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.
Potentially problematic release.
This version of egglog might be problematic. Click here for more details.
- egglog/bindings.cp313-win_amd64.pyd +0 -0
- egglog/builtins.py +22 -22
- egglog/egraph.py +1 -1
- egglog/exp/program_gen.py +2 -2
- egglog/version_compat.py +1 -1
- {egglog-11.0.0.dist-info → egglog-11.1.0.dist-info}/METADATA +1 -1
- {egglog-11.0.0.dist-info → egglog-11.1.0.dist-info}/RECORD +9 -9
- {egglog-11.0.0.dist-info → egglog-11.1.0.dist-info}/WHEEL +0 -0
- {egglog-11.0.0.dist-info → egglog-11.1.0.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
egglog/builtins.py
CHANGED
|
@@ -91,7 +91,7 @@ class String(BuiltinExpr):
|
|
|
91
91
|
def eval(self) -> str:
|
|
92
92
|
return self.value
|
|
93
93
|
|
|
94
|
-
@method(preserve=True) # type: ignore[
|
|
94
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
95
95
|
@property
|
|
96
96
|
def value(self) -> str:
|
|
97
97
|
if (value := get_literal_value(self)) is not None:
|
|
@@ -122,7 +122,7 @@ class Bool(BuiltinExpr, egg_sort="bool"):
|
|
|
122
122
|
def eval(self) -> bool:
|
|
123
123
|
return self.value
|
|
124
124
|
|
|
125
|
-
@method(preserve=True) # type: ignore[
|
|
125
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
126
126
|
@property
|
|
127
127
|
def value(self) -> bool:
|
|
128
128
|
if (value := get_literal_value(self)) is not None:
|
|
@@ -165,7 +165,7 @@ class i64(BuiltinExpr): # noqa: N801
|
|
|
165
165
|
def eval(self) -> int:
|
|
166
166
|
return self.value
|
|
167
167
|
|
|
168
|
-
@method(preserve=True) # type: ignore[
|
|
168
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
169
169
|
@property
|
|
170
170
|
def value(self) -> int:
|
|
171
171
|
if (value := get_literal_value(self)) is not None:
|
|
@@ -239,14 +239,14 @@ class i64(BuiltinExpr): # noqa: N801
|
|
|
239
239
|
def __invert__(self) -> i64: ...
|
|
240
240
|
|
|
241
241
|
@method(egg_fn="<")
|
|
242
|
-
def __lt__(self, other: i64Like) -> Unit: # type: ignore[
|
|
242
|
+
def __lt__(self, other: i64Like) -> Unit: # type: ignore[has-type]
|
|
243
243
|
...
|
|
244
244
|
|
|
245
245
|
@method(egg_fn=">")
|
|
246
246
|
def __gt__(self, other: i64Like) -> Unit: ...
|
|
247
247
|
|
|
248
248
|
@method(egg_fn="<=")
|
|
249
|
-
def __le__(self, other: i64Like) -> Unit: # type: ignore[
|
|
249
|
+
def __le__(self, other: i64Like) -> Unit: # type: ignore[has-type]
|
|
250
250
|
...
|
|
251
251
|
|
|
252
252
|
@method(egg_fn=">=")
|
|
@@ -292,7 +292,7 @@ class f64(BuiltinExpr): # noqa: N801
|
|
|
292
292
|
def eval(self) -> float:
|
|
293
293
|
return self.value
|
|
294
294
|
|
|
295
|
-
@method(preserve=True) # type: ignore[
|
|
295
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
296
296
|
@property
|
|
297
297
|
def value(self) -> float:
|
|
298
298
|
if (value := get_literal_value(self)) is not None:
|
|
@@ -341,14 +341,14 @@ class f64(BuiltinExpr): # noqa: N801
|
|
|
341
341
|
def __rmod__(self, other: f64Like) -> f64: ...
|
|
342
342
|
|
|
343
343
|
@method(egg_fn="<")
|
|
344
|
-
def __lt__(self, other: f64Like) -> Unit: # type: ignore[
|
|
344
|
+
def __lt__(self, other: f64Like) -> Unit: # type: ignore[has-type]
|
|
345
345
|
...
|
|
346
346
|
|
|
347
347
|
@method(egg_fn=">")
|
|
348
348
|
def __gt__(self, other: f64Like) -> Unit: ...
|
|
349
349
|
|
|
350
350
|
@method(egg_fn="<=")
|
|
351
|
-
def __le__(self, other: f64Like) -> Unit: # type: ignore[
|
|
351
|
+
def __le__(self, other: f64Like) -> Unit: # type: ignore[has-type]
|
|
352
352
|
...
|
|
353
353
|
|
|
354
354
|
@method(egg_fn=">=")
|
|
@@ -387,7 +387,7 @@ class Map(BuiltinExpr, Generic[T, V]):
|
|
|
387
387
|
def eval(self) -> dict[T, V]:
|
|
388
388
|
return self.value
|
|
389
389
|
|
|
390
|
-
@method(preserve=True) # type: ignore[
|
|
390
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
391
391
|
@property
|
|
392
392
|
def value(self) -> dict[T, V]:
|
|
393
393
|
d = {}
|
|
@@ -457,7 +457,7 @@ class Set(BuiltinExpr, Generic[T]):
|
|
|
457
457
|
def eval(self) -> set[T]:
|
|
458
458
|
return self.value
|
|
459
459
|
|
|
460
|
-
@method(preserve=True) # type: ignore[
|
|
460
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
461
461
|
@property
|
|
462
462
|
def value(self) -> set[T]:
|
|
463
463
|
if (args := get_callable_args(self, Set[T])) is not None:
|
|
@@ -527,7 +527,7 @@ class MultiSet(BuiltinExpr, Generic[T]):
|
|
|
527
527
|
def eval(self) -> list[T]:
|
|
528
528
|
return self.value
|
|
529
529
|
|
|
530
|
-
@method(preserve=True) # type: ignore[
|
|
530
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
531
531
|
@property
|
|
532
532
|
def value(self) -> list[T]:
|
|
533
533
|
if (args := get_callable_args(self, MultiSet[T])) is not None:
|
|
@@ -582,7 +582,7 @@ class Rational(BuiltinExpr):
|
|
|
582
582
|
def eval(self) -> Fraction:
|
|
583
583
|
return self.value
|
|
584
584
|
|
|
585
|
-
@method(preserve=True) # type: ignore[
|
|
585
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
586
586
|
@property
|
|
587
587
|
def value(self) -> Fraction:
|
|
588
588
|
match get_callable_args(self, Rational):
|
|
@@ -651,11 +651,11 @@ class Rational(BuiltinExpr):
|
|
|
651
651
|
@method(egg_fn="cbrt")
|
|
652
652
|
def cbrt(self) -> Rational: ...
|
|
653
653
|
|
|
654
|
-
@method(egg_fn="numer") # type: ignore[
|
|
654
|
+
@method(egg_fn="numer") # type: ignore[prop-decorator]
|
|
655
655
|
@property
|
|
656
656
|
def numer(self) -> i64: ...
|
|
657
657
|
|
|
658
|
-
@method(egg_fn="denom") # type: ignore[
|
|
658
|
+
@method(egg_fn="denom") # type: ignore[prop-decorator]
|
|
659
659
|
@property
|
|
660
660
|
def denom(self) -> i64: ...
|
|
661
661
|
|
|
@@ -666,7 +666,7 @@ class BigInt(BuiltinExpr):
|
|
|
666
666
|
def eval(self) -> int:
|
|
667
667
|
return self.value
|
|
668
668
|
|
|
669
|
-
@method(preserve=True) # type: ignore[
|
|
669
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
670
670
|
@property
|
|
671
671
|
def value(self) -> int:
|
|
672
672
|
match get_callable_args(self, BigInt.from_string):
|
|
@@ -744,14 +744,14 @@ class BigInt(BuiltinExpr):
|
|
|
744
744
|
def bits(self) -> BigInt: ...
|
|
745
745
|
|
|
746
746
|
@method(egg_fn="<")
|
|
747
|
-
def __lt__(self, other: BigIntLike) -> Unit: # type: ignore[
|
|
747
|
+
def __lt__(self, other: BigIntLike) -> Unit: # type: ignore[has-type]
|
|
748
748
|
...
|
|
749
749
|
|
|
750
750
|
@method(egg_fn=">")
|
|
751
751
|
def __gt__(self, other: BigIntLike) -> Unit: ...
|
|
752
752
|
|
|
753
753
|
@method(egg_fn="<=")
|
|
754
|
-
def __le__(self, other: BigIntLike) -> Unit: # type: ignore[
|
|
754
|
+
def __le__(self, other: BigIntLike) -> Unit: # type: ignore[has-type]
|
|
755
755
|
...
|
|
756
756
|
|
|
757
757
|
@method(egg_fn=">=")
|
|
@@ -793,7 +793,7 @@ class BigRat(BuiltinExpr):
|
|
|
793
793
|
def eval(self) -> Fraction:
|
|
794
794
|
return self.value
|
|
795
795
|
|
|
796
|
-
@method(preserve=True) # type: ignore[
|
|
796
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
797
797
|
@property
|
|
798
798
|
def value(self) -> Fraction:
|
|
799
799
|
match get_callable_args(self, BigRat):
|
|
@@ -862,11 +862,11 @@ class BigRat(BuiltinExpr):
|
|
|
862
862
|
@method(egg_fn="cbrt")
|
|
863
863
|
def cbrt(self) -> BigRat: ...
|
|
864
864
|
|
|
865
|
-
@method(egg_fn="numer") # type: ignore[
|
|
865
|
+
@method(egg_fn="numer") # type: ignore[prop-decorator]
|
|
866
866
|
@property
|
|
867
867
|
def numer(self) -> BigInt: ...
|
|
868
868
|
|
|
869
|
-
@method(egg_fn="denom") # type: ignore[
|
|
869
|
+
@method(egg_fn="denom") # type: ignore[prop-decorator]
|
|
870
870
|
@property
|
|
871
871
|
def denom(self) -> BigInt: ...
|
|
872
872
|
|
|
@@ -893,7 +893,7 @@ class Vec(BuiltinExpr, Generic[T]):
|
|
|
893
893
|
def eval(self) -> tuple[T, ...]:
|
|
894
894
|
return self.value
|
|
895
895
|
|
|
896
|
-
@method(preserve=True) # type: ignore[
|
|
896
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
897
897
|
@property
|
|
898
898
|
def value(self) -> tuple[T, ...]:
|
|
899
899
|
if get_callable_args(self, Vec.empty) is not None:
|
|
@@ -972,7 +972,7 @@ class PyObject(BuiltinExpr):
|
|
|
972
972
|
def eval(self) -> object:
|
|
973
973
|
return self.value
|
|
974
974
|
|
|
975
|
-
@method(preserve=True) # type: ignore[
|
|
975
|
+
@method(preserve=True) # type: ignore[prop-decorator]
|
|
976
976
|
@property
|
|
977
977
|
def value(self) -> object:
|
|
978
978
|
expr = cast("RuntimeExpr", self).__egg_typed_expr__.expr
|
egglog/egraph.py
CHANGED
|
@@ -1767,7 +1767,7 @@ def _rewrite_or_rule_generator(gen: RewriteOrRuleGenerator, frame: FrameType) ->
|
|
|
1767
1767
|
combined = {**gen.__globals__, **frame.f_locals}
|
|
1768
1768
|
hints = get_type_hints(gen, combined, combined)
|
|
1769
1769
|
args = [_var(p.name, hints[p.name], egg_name=None) for p in signature(gen).parameters.values()]
|
|
1770
|
-
return list(gen(*args))
|
|
1770
|
+
return list(gen(*args))
|
|
1771
1771
|
|
|
1772
1772
|
|
|
1773
1773
|
FactLike = Fact | BaseExpr
|
egglog/exp/program_gen.py
CHANGED
|
@@ -79,7 +79,7 @@ class Program(Expr):
|
|
|
79
79
|
Triggers compilation of the program.
|
|
80
80
|
"""
|
|
81
81
|
|
|
82
|
-
@method(merge=lambda old, _new: old) # type: ignore[
|
|
82
|
+
@method(merge=lambda old, _new: old) # type: ignore[prop-decorator]
|
|
83
83
|
@property
|
|
84
84
|
def parent(self) -> Program:
|
|
85
85
|
"""
|
|
@@ -108,7 +108,7 @@ class EvalProgram(Expr):
|
|
|
108
108
|
"""
|
|
109
109
|
|
|
110
110
|
# Only allow it to be set once, b/c hash of functions not stable
|
|
111
|
-
@method(merge=lambda old, _new: old) # type: ignore[
|
|
111
|
+
@method(merge=lambda old, _new: old) # type: ignore[prop-decorator]
|
|
112
112
|
@property
|
|
113
113
|
def as_py_object(self) -> PyObject:
|
|
114
114
|
"""
|
egglog/version_compat.py
CHANGED
|
@@ -39,7 +39,7 @@ if BEFORE_3_11:
|
|
|
39
39
|
if isinstance(t, typevar_types) and t not in tvars:
|
|
40
40
|
tvars.append(t)
|
|
41
41
|
# **MONKEYPATCH CHANGE HERE TO ADD RuntimeClass**
|
|
42
|
-
if isinstance(t, (typing._GenericAlias, typing.GenericAlias, types.UnionType, RuntimeClass)):
|
|
42
|
+
if isinstance(t, (typing._GenericAlias, typing.GenericAlias, types.UnionType, RuntimeClass)):
|
|
43
43
|
tvars.extend([t for t in t.__parameters__ if t not in tvars])
|
|
44
44
|
return tuple(tvars)
|
|
45
45
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
egglog-11.
|
|
2
|
-
egglog-11.
|
|
3
|
-
egglog-11.
|
|
1
|
+
egglog-11.1.0.dist-info/METADATA,sha256=865-TFtrwCy1OfpeqBU2BcK96tl3G4hG1AMb4fVNCZU,4019
|
|
2
|
+
egglog-11.1.0.dist-info/WHEEL,sha256=DfU-bXnJK60cJceeC-xy2sa_ryw_ZpNrTnTQMSW4eNA,96
|
|
3
|
+
egglog-11.1.0.dist-info/licenses/LICENSE,sha256=TfaboMVZ81Q6OUaKjU7z6uVjSlcGKclLYcOpgDbm9_s,1091
|
|
4
4
|
egglog/__init__.py,sha256=CAD9lfaUAcqSoTtprQfsFYqoOcqxAYsGBDU7laaYj0w,357
|
|
5
|
-
egglog/bindings.cp313-win_amd64.pyd,sha256=
|
|
5
|
+
egglog/bindings.cp313-win_amd64.pyd,sha256=gG7dNktng292liaUqilnV0qjGtmAoSS-ChltVykCAyc,10306560
|
|
6
6
|
egglog/bindings.pyi,sha256=-sm1qF7dDGEsFGDbny8LEIYTFMnlDfUV7HfQ-P81Crg,14301
|
|
7
|
-
egglog/builtins.py,sha256=
|
|
7
|
+
egglog/builtins.py,sha256=StODsE0YzfDmRnvt3lJChwUa9TQ-M16EAGQMjVS2njI,31337
|
|
8
8
|
egglog/config.py,sha256=mALVaxh7zmGrbuyzaVKVmYKcu1lF703QsKJw8AF7gSM,176
|
|
9
9
|
egglog/conversion.py,sha256=YSkLn744-Ci_GmlcZAvLwmJNN8WZyYDjPI8Sqj5TN-0,11524
|
|
10
10
|
egglog/declarations.py,sha256=nXO13l2s8K-PB2d4ARoIS63deuxo0RWG9zAFKG3APBA,26688
|
|
11
11
|
egglog/deconstruct.py,sha256=BzcrC1Qc_hlFhfQ2kkh1JB9Ur9Vi6IyjqM6KLhrZR58,5808
|
|
12
|
-
egglog/egraph.py,sha256=
|
|
12
|
+
egglog/egraph.py,sha256=aI0POepFzToRW8-OZIlMY-ELinK3DvB3clBbxvPit-s,62400
|
|
13
13
|
egglog/egraph_state.py,sha256=hdjM10qpeeUypNM7OREPT9uxVD0kvn6WaoMkXq96TpU,28993
|
|
14
14
|
egglog/examples/README.rst,sha256=QrbfmivODBvUvmY3-dHarcbC6bEvwoqAfTDhiI-aJxU,237
|
|
15
15
|
egglog/examples/__init__.py,sha256=KuhaJFOyz_rpUvEqZubsgLnv6rhQNE_AVFXA6bUnpdY,34
|
|
@@ -30,7 +30,7 @@ egglog/exp/array_api_jit.py,sha256=1mp6s2e2ySqulfb5pFuTQZ-IQ3UdDmT7eJvJME1X5hs,1
|
|
|
30
30
|
egglog/exp/array_api_loopnest.py,sha256=1KZ8kWtv00TVCbzqzWG92vz8Y1pBlPOLRIrJfxyDs9s,2518
|
|
31
31
|
egglog/exp/array_api_numba.py,sha256=g0Yb7auB2MtJHgSzn7iVnsxn6ffL4FHggKvbEuuDwZs,2765
|
|
32
32
|
egglog/exp/array_api_program_gen.py,sha256=LatOqKiGVzpUhWIGtoZw9lLZdK3Oeg7XjR4ILLGby10,22289
|
|
33
|
-
egglog/exp/program_gen.py,sha256=
|
|
33
|
+
egglog/exp/program_gen.py,sha256=CiLgPo2YoQi83DAVmR7gU61ocWkxnYEV1toie8y8ppQ,13458
|
|
34
34
|
egglog/exp/siu_examples.py,sha256=nPV1IaA2NfIczpJPg3l8diUhoyio02KQUu-O55Pj1EQ,751
|
|
35
35
|
egglog/ipython_magic.py,sha256=QDw45CA2wKi9vrBbvHZXLeMaRtoHSGLBJdqyNFtvD7o,1230
|
|
36
36
|
egglog/pretty.py,sha256=pSTOMAgywLZ_0Y3oxYPmIbtxsVADWFw60G3LKTOYFWk,20632
|
|
@@ -38,8 +38,8 @@ egglog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
38
38
|
egglog/runtime.py,sha256=pOuAnqK_5Fb3Q0tfjC0JUIPoi9eEQtQBg38TtmnNSUQ,28664
|
|
39
39
|
egglog/thunk.py,sha256=97JH5VVrr5m3yaua40StfDsQYEvACXirBzZv9CHHLbY,2368
|
|
40
40
|
egglog/type_constraint_solver.py,sha256=uRLho3KQUtMn3ncugXADN5SfNqmqekduOl5CuWhhx4M,4631
|
|
41
|
-
egglog/version_compat.py,sha256=
|
|
41
|
+
egglog/version_compat.py,sha256=QGgZo85mwGsuFqNkRfLiGdxGR0K-B5Pax0f7fRjMW50,3599
|
|
42
42
|
egglog/visualizer.css,sha256=DDmxZfLmFygwVkQwel0gGUiM5BZqgunawWeSfaRYBr8,259399
|
|
43
43
|
egglog/visualizer.js,sha256=kDkYzE5cLLhmpNaWqSfQWzD0SlSsNe9KzT_GpNqhWgo,3789092
|
|
44
44
|
egglog/visualizer_widget.py,sha256=TGkf61P_f4EvCFcyqwQC_8XYUkujFhcQnEG9vHWLPC4,1358
|
|
45
|
-
egglog-11.
|
|
45
|
+
egglog-11.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|