scaevola 1.0.10__tar.gz → 1.0.11__tar.gz
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-1.0.10/src/scaevola.egg-info → scaevola-1.0.11}/PKG-INFO +1 -1
- {scaevola-1.0.10 → scaevola-1.0.11}/pyproject.toml +1 -1
- scaevola-1.0.11/src/scaevola/core.py +69 -0
- {scaevola-1.0.10 → scaevola-1.0.11/src/scaevola.egg-info}/PKG-INFO +1 -1
- scaevola-1.0.10/src/scaevola/core.py +0 -48
- {scaevola-1.0.10 → scaevola-1.0.11}/LICENSE.txt +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/MANIFEST.in +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/README.rst +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/setup.cfg +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/src/scaevola/__init__.py +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/src/scaevola/tests/__init__.py +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/src/scaevola/tests/tests_operators.py +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/src/scaevola.egg-info/SOURCES.txt +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/src/scaevola.egg-info/dependency_links.txt +0 -0
- {scaevola-1.0.10 → scaevola-1.0.11}/src/scaevola.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from typing import *
|
|
2
|
+
|
|
3
|
+
__all__ = ["Scaevola"]
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Scaevola:
|
|
7
|
+
def __ge__(self, other: Any) -> Any:
|
|
8
|
+
"""Return self>=other."""
|
|
9
|
+
return type(self)(other) <= self
|
|
10
|
+
|
|
11
|
+
def __gt__(self, other: Any) -> Any:
|
|
12
|
+
"""Return self>other."""
|
|
13
|
+
return type(self)(other) < self
|
|
14
|
+
|
|
15
|
+
def __radd__(self, other: Any) -> Any:
|
|
16
|
+
"""Return other+self."""
|
|
17
|
+
return type(self)(other) + self
|
|
18
|
+
|
|
19
|
+
def __rand__(self, other: Any) -> Any:
|
|
20
|
+
"""Return other&self."""
|
|
21
|
+
return type(self)(other) & self
|
|
22
|
+
|
|
23
|
+
def __rdivmod__(self, other: Any) -> Any:
|
|
24
|
+
"""Return divmod(other, self)."""
|
|
25
|
+
return divmod(type(self)(other), self)
|
|
26
|
+
|
|
27
|
+
def __rfloordiv__(self, other: Any) -> Any:
|
|
28
|
+
"""Return other//self."""
|
|
29
|
+
return type(self)(other) // self
|
|
30
|
+
|
|
31
|
+
def __rlshift__(self, other: Any) -> Any:
|
|
32
|
+
"""Return other<<self."""
|
|
33
|
+
return type(self)(other) << self
|
|
34
|
+
|
|
35
|
+
def __rmatmul__(self, other: Any) -> Any:
|
|
36
|
+
"""Return other@self."""
|
|
37
|
+
return type(self)(other) @ self
|
|
38
|
+
|
|
39
|
+
def __rmod__(self, other: Any) -> Any:
|
|
40
|
+
"""Return other%self."""
|
|
41
|
+
return type(self)(other) % self
|
|
42
|
+
|
|
43
|
+
def __rmul__(self, other: Any) -> Any:
|
|
44
|
+
"""Return other*self."""
|
|
45
|
+
return type(self)(other) * self
|
|
46
|
+
|
|
47
|
+
def __ror__(self, other: Any) -> Any:
|
|
48
|
+
"""Return other|self."""
|
|
49
|
+
return type(self)(other) | self
|
|
50
|
+
|
|
51
|
+
def __rpow__(self, other: Any) -> Any:
|
|
52
|
+
"""Return pow(other, self)."""
|
|
53
|
+
return type(self)(other) ** self
|
|
54
|
+
|
|
55
|
+
def __rrshift__(self, other: Any) -> Any:
|
|
56
|
+
"""Return other>>self."""
|
|
57
|
+
return type(self)(other) >> self
|
|
58
|
+
|
|
59
|
+
def __rsub__(self, other: Any) -> Any:
|
|
60
|
+
"""Return other-self."""
|
|
61
|
+
return type(self)(other) - self
|
|
62
|
+
|
|
63
|
+
def __rtruediv__(self, other: Any) -> Any:
|
|
64
|
+
"""Return other/self."""
|
|
65
|
+
return type(self)(other) / self
|
|
66
|
+
|
|
67
|
+
def __rxor__(self, other: Any) -> Any:
|
|
68
|
+
"""Return other^self."""
|
|
69
|
+
return type(self)(other) ^ self
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
class Scaevola:
|
|
2
|
-
def __ge__(self, other):
|
|
3
|
-
return type(self)(other) <= self
|
|
4
|
-
|
|
5
|
-
def __gt__(self, other):
|
|
6
|
-
return type(self)(other) < self
|
|
7
|
-
|
|
8
|
-
def __radd__(self, other):
|
|
9
|
-
return type(self)(other) + self
|
|
10
|
-
|
|
11
|
-
def __rand__(self, other):
|
|
12
|
-
return type(self)(other) & self
|
|
13
|
-
|
|
14
|
-
def __rdivmod__(self, other):
|
|
15
|
-
return divmod(type(self)(other), self)
|
|
16
|
-
|
|
17
|
-
def __rfloordiv__(self, other):
|
|
18
|
-
return type(self)(other) // self
|
|
19
|
-
|
|
20
|
-
def __rlshift__(self, other):
|
|
21
|
-
return type(self)(other) << self
|
|
22
|
-
|
|
23
|
-
def __rmatmul__(self, other):
|
|
24
|
-
return type(self)(other) @ self
|
|
25
|
-
|
|
26
|
-
def __rmod__(self, other):
|
|
27
|
-
return type(self)(other) % self
|
|
28
|
-
|
|
29
|
-
def __rmul__(self, other):
|
|
30
|
-
return type(self)(other) * self
|
|
31
|
-
|
|
32
|
-
def __ror__(self, other):
|
|
33
|
-
return type(self)(other) | self
|
|
34
|
-
|
|
35
|
-
def __rpow__(self, other):
|
|
36
|
-
return type(self)(other) ** self
|
|
37
|
-
|
|
38
|
-
def __rrshift__(self, other):
|
|
39
|
-
return type(self)(other) >> self
|
|
40
|
-
|
|
41
|
-
def __rsub__(self, other):
|
|
42
|
-
return type(self)(other) - self
|
|
43
|
-
|
|
44
|
-
def __rtruediv__(self, other):
|
|
45
|
-
return type(self)(other) / self
|
|
46
|
-
|
|
47
|
-
def __rxor__(self, other):
|
|
48
|
-
return type(self)(other) ^ self
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|