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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scaevola
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Summary: class with preset right handed magic methods
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -21,7 +21,7 @@ keywords = []
21
21
  name = "scaevola"
22
22
  readme = "README.rst"
23
23
  requires-python = ">=3.8"
24
- version = "1.0.10"
24
+ version = "1.0.11"
25
25
 
26
26
  [project.license]
27
27
  file = "LICENSE.txt"
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scaevola
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Summary: class with preset right handed magic methods
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -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