scaevola 1.0.10__py3-none-any.whl → 1.0.11__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.
- scaevola/core.py +37 -16
- {scaevola-1.0.10.dist-info → scaevola-1.0.11.dist-info}/METADATA +1 -1
- scaevola-1.0.11.dist-info/RECORD +9 -0
- scaevola-1.0.10.dist-info/RECORD +0 -9
- {scaevola-1.0.10.dist-info → scaevola-1.0.11.dist-info}/LICENSE.txt +0 -0
- {scaevola-1.0.10.dist-info → scaevola-1.0.11.dist-info}/WHEEL +0 -0
- {scaevola-1.0.10.dist-info → scaevola-1.0.11.dist-info}/top_level.txt +0 -0
scaevola/core.py
CHANGED
|
@@ -1,48 +1,69 @@
|
|
|
1
|
+
from typing import *
|
|
2
|
+
|
|
3
|
+
__all__ = ["Scaevola"]
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
class Scaevola:
|
|
2
|
-
def __ge__(self, other):
|
|
7
|
+
def __ge__(self, other: Any) -> Any:
|
|
8
|
+
"""Return self>=other."""
|
|
3
9
|
return type(self)(other) <= self
|
|
4
10
|
|
|
5
|
-
def __gt__(self, other):
|
|
11
|
+
def __gt__(self, other: Any) -> Any:
|
|
12
|
+
"""Return self>other."""
|
|
6
13
|
return type(self)(other) < self
|
|
7
14
|
|
|
8
|
-
def __radd__(self, other):
|
|
15
|
+
def __radd__(self, other: Any) -> Any:
|
|
16
|
+
"""Return other+self."""
|
|
9
17
|
return type(self)(other) + self
|
|
10
18
|
|
|
11
|
-
def __rand__(self, other):
|
|
19
|
+
def __rand__(self, other: Any) -> Any:
|
|
20
|
+
"""Return other&self."""
|
|
12
21
|
return type(self)(other) & self
|
|
13
22
|
|
|
14
|
-
def __rdivmod__(self, other):
|
|
23
|
+
def __rdivmod__(self, other: Any) -> Any:
|
|
24
|
+
"""Return divmod(other, self)."""
|
|
15
25
|
return divmod(type(self)(other), self)
|
|
16
26
|
|
|
17
|
-
def __rfloordiv__(self, other):
|
|
27
|
+
def __rfloordiv__(self, other: Any) -> Any:
|
|
28
|
+
"""Return other//self."""
|
|
18
29
|
return type(self)(other) // self
|
|
19
30
|
|
|
20
|
-
def __rlshift__(self, other):
|
|
31
|
+
def __rlshift__(self, other: Any) -> Any:
|
|
32
|
+
"""Return other<<self."""
|
|
21
33
|
return type(self)(other) << self
|
|
22
34
|
|
|
23
|
-
def __rmatmul__(self, other):
|
|
35
|
+
def __rmatmul__(self, other: Any) -> Any:
|
|
36
|
+
"""Return other@self."""
|
|
24
37
|
return type(self)(other) @ self
|
|
25
38
|
|
|
26
|
-
def __rmod__(self, other):
|
|
39
|
+
def __rmod__(self, other: Any) -> Any:
|
|
40
|
+
"""Return other%self."""
|
|
27
41
|
return type(self)(other) % self
|
|
28
42
|
|
|
29
|
-
def __rmul__(self, other):
|
|
43
|
+
def __rmul__(self, other: Any) -> Any:
|
|
44
|
+
"""Return other*self."""
|
|
30
45
|
return type(self)(other) * self
|
|
31
46
|
|
|
32
|
-
def __ror__(self, other):
|
|
47
|
+
def __ror__(self, other: Any) -> Any:
|
|
48
|
+
"""Return other|self."""
|
|
33
49
|
return type(self)(other) | self
|
|
34
50
|
|
|
35
|
-
def __rpow__(self, other):
|
|
51
|
+
def __rpow__(self, other: Any) -> Any:
|
|
52
|
+
"""Return pow(other, self)."""
|
|
36
53
|
return type(self)(other) ** self
|
|
37
54
|
|
|
38
|
-
def __rrshift__(self, other):
|
|
55
|
+
def __rrshift__(self, other: Any) -> Any:
|
|
56
|
+
"""Return other>>self."""
|
|
39
57
|
return type(self)(other) >> self
|
|
40
58
|
|
|
41
|
-
def __rsub__(self, other):
|
|
59
|
+
def __rsub__(self, other: Any) -> Any:
|
|
60
|
+
"""Return other-self."""
|
|
42
61
|
return type(self)(other) - self
|
|
43
62
|
|
|
44
|
-
def __rtruediv__(self, other):
|
|
63
|
+
def __rtruediv__(self, other: Any) -> Any:
|
|
64
|
+
"""Return other/self."""
|
|
45
65
|
return type(self)(other) / self
|
|
46
66
|
|
|
47
|
-
def __rxor__(self, other):
|
|
67
|
+
def __rxor__(self, other: Any) -> Any:
|
|
68
|
+
"""Return other^self."""
|
|
48
69
|
return type(self)(other) ^ self
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
scaevola/__init__.py,sha256=KAt5tVgdikLvbdauzJTkCsxH3vJKrff4LB1CH8OklYM,57
|
|
2
|
+
scaevola/core.py,sha256=8BrwNl4jyc5kRY9yUbK1xE8R_HI2ytET_b3Ve_T_Xng,1981
|
|
3
|
+
scaevola/tests/__init__.py,sha256=ks4pt_cFlcE6dNvV8osJ7Ezzewqqqm4LPnP9Qod20tM,229
|
|
4
|
+
scaevola/tests/tests_operators.py,sha256=OfXTuqdPouiZontb-aVZ5r33uTYijibkpO0Kmf4veKU,5115
|
|
5
|
+
scaevola-1.0.11.dist-info/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
|
|
6
|
+
scaevola-1.0.11.dist-info/METADATA,sha256=hSESzq-CcddVobyBSXkyESyALNIUEXui6hiCW-2Dvr0,2259
|
|
7
|
+
scaevola-1.0.11.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
8
|
+
scaevola-1.0.11.dist-info/top_level.txt,sha256=1oM62lKpwPWVxHtGCB2tN-TIs0bzZaSkB9dlI3Eoesw,9
|
|
9
|
+
scaevola-1.0.11.dist-info/RECORD,,
|
scaevola-1.0.10.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
scaevola/__init__.py,sha256=KAt5tVgdikLvbdauzJTkCsxH3vJKrff4LB1CH8OklYM,57
|
|
2
|
-
scaevola/core.py,sha256=DtV4VI3d2fL7P_Q-rL0V-XMgUalXAaW9au4YilWufPc,1195
|
|
3
|
-
scaevola/tests/__init__.py,sha256=ks4pt_cFlcE6dNvV8osJ7Ezzewqqqm4LPnP9Qod20tM,229
|
|
4
|
-
scaevola/tests/tests_operators.py,sha256=OfXTuqdPouiZontb-aVZ5r33uTYijibkpO0Kmf4veKU,5115
|
|
5
|
-
scaevola-1.0.10.dist-info/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
|
|
6
|
-
scaevola-1.0.10.dist-info/METADATA,sha256=vzLJmaBbdZ7DW_6kNM3HvshuHAAEMT3ymyQKUrCbnew,2259
|
|
7
|
-
scaevola-1.0.10.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
8
|
-
scaevola-1.0.10.dist-info/top_level.txt,sha256=1oM62lKpwPWVxHtGCB2tN-TIs0bzZaSkB9dlI3Eoesw,9
|
|
9
|
-
scaevola-1.0.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|