scaevola 1.0.12__py3-none-any.whl → 1.0.14__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 +16 -16
- {scaevola-1.0.12.dist-info → scaevola-1.0.14.dist-info}/METADATA +5 -4
- scaevola-1.0.14.dist-info/RECORD +10 -0
- {scaevola-1.0.12.dist-info → scaevola-1.0.14.dist-info}/WHEEL +1 -1
- scaevola-1.0.12.dist-info/RECORD +0 -10
- {scaevola-1.0.12.dist-info → scaevola-1.0.14.dist-info/licenses}/LICENSE.txt +0 -0
- {scaevola-1.0.12.dist-info → scaevola-1.0.14.dist-info}/top_level.txt +0 -0
scaevola/core.py
CHANGED
|
@@ -4,66 +4,66 @@ __all__ = ["Scaevola"]
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Scaevola:
|
|
7
|
-
def __ge__(self, other: Any) -> Any:
|
|
7
|
+
def __ge__(self: Self, other: Any) -> Any:
|
|
8
8
|
"This magic method implements self>=other."
|
|
9
9
|
return type(self)(other) <= self
|
|
10
10
|
|
|
11
|
-
def __gt__(self, other: Any) -> Any:
|
|
11
|
+
def __gt__(self: Self, other: Any) -> Any:
|
|
12
12
|
"This magic method implements self>other."
|
|
13
13
|
return type(self)(other) < self
|
|
14
14
|
|
|
15
|
-
def __radd__(self, other: Any) -> Any:
|
|
15
|
+
def __radd__(self: Self, other: Any) -> Any:
|
|
16
16
|
"This magic method implements other+self."
|
|
17
17
|
return type(self)(other) + self
|
|
18
18
|
|
|
19
|
-
def __rand__(self, other: Any) -> Any:
|
|
19
|
+
def __rand__(self: Self, other: Any) -> Any:
|
|
20
20
|
"This magic method implements other&self."
|
|
21
21
|
return type(self)(other) & self
|
|
22
22
|
|
|
23
|
-
def __rdivmod__(self, other: Any) -> Any:
|
|
23
|
+
def __rdivmod__(self: Self, other: Any) -> Any:
|
|
24
24
|
"This magic method implements divmod(other, self)."
|
|
25
25
|
return divmod(type(self)(other), self)
|
|
26
26
|
|
|
27
|
-
def __rfloordiv__(self, other: Any) -> Any:
|
|
27
|
+
def __rfloordiv__(self: Self, other: Any) -> Any:
|
|
28
28
|
"This magic method implements other//self."
|
|
29
29
|
return type(self)(other) // self
|
|
30
30
|
|
|
31
|
-
def __rlshift__(self, other: Any) -> Any:
|
|
31
|
+
def __rlshift__(self: Self, other: Any) -> Any:
|
|
32
32
|
"This magic method implements other<<self."
|
|
33
33
|
return type(self)(other) << self
|
|
34
34
|
|
|
35
|
-
def __rmatmul__(self, other: Any) -> Any:
|
|
35
|
+
def __rmatmul__(self: Self, other: Any) -> Any:
|
|
36
36
|
"This magic method implements other@self."
|
|
37
37
|
return type(self)(other) @ self
|
|
38
38
|
|
|
39
|
-
def __rmod__(self, other: Any) -> Any:
|
|
39
|
+
def __rmod__(self: Self, other: Any) -> Any:
|
|
40
40
|
"This magic method implements other%self."
|
|
41
41
|
return type(self)(other) % self
|
|
42
42
|
|
|
43
|
-
def __rmul__(self, other: Any) -> Any:
|
|
43
|
+
def __rmul__(self: Self, other: Any) -> Any:
|
|
44
44
|
"This magic method implements other*self."
|
|
45
45
|
return type(self)(other) * self
|
|
46
46
|
|
|
47
|
-
def __ror__(self, other: Any) -> Any:
|
|
47
|
+
def __ror__(self: Self, other: Any) -> Any:
|
|
48
48
|
"This magic method implements other|self."
|
|
49
49
|
return type(self)(other) | self
|
|
50
50
|
|
|
51
|
-
def __rpow__(self, other: Any) -> Any:
|
|
51
|
+
def __rpow__(self: Self, other: Any) -> Any:
|
|
52
52
|
"This magic method implements pow(other, self)."
|
|
53
53
|
return type(self)(other) ** self
|
|
54
54
|
|
|
55
|
-
def __rrshift__(self, other: Any) -> Any:
|
|
55
|
+
def __rrshift__(self: Self, other: Any) -> Any:
|
|
56
56
|
"This magic method implements other>>self."
|
|
57
57
|
return type(self)(other) >> self
|
|
58
58
|
|
|
59
|
-
def __rsub__(self, other: Any) -> Any:
|
|
59
|
+
def __rsub__(self: Self, other: Any) -> Any:
|
|
60
60
|
"This magic method implements other-self."
|
|
61
61
|
return type(self)(other) - self
|
|
62
62
|
|
|
63
|
-
def __rtruediv__(self, other: Any) -> Any:
|
|
63
|
+
def __rtruediv__(self: Self, other: Any) -> Any:
|
|
64
64
|
"This magic method implements other/self."
|
|
65
65
|
return type(self)(other) / self
|
|
66
66
|
|
|
67
|
-
def __rxor__(self, other: Any) -> Any:
|
|
67
|
+
def __rxor__(self: Self, other: Any) -> Any:
|
|
68
68
|
"This magic method implements other^self."
|
|
69
69
|
return type(self)(other) ^ self
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: scaevola
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.14
|
|
4
4
|
Summary: This project provides a class with preset right handed magic methods.
|
|
5
|
-
Author-email: Johannes <johannes
|
|
5
|
+
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
8
8
|
Copyright (c) 2024 Johannes
|
|
@@ -36,9 +36,10 @@ Classifier: Programming Language :: Python
|
|
|
36
36
|
Classifier: Programming Language :: Python :: 3
|
|
37
37
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
38
|
Classifier: Typing :: Typed
|
|
39
|
-
Requires-Python: >=3.
|
|
39
|
+
Requires-Python: >=3.11
|
|
40
40
|
Description-Content-Type: text/x-rst
|
|
41
41
|
License-File: LICENSE.txt
|
|
42
|
+
Dynamic: license-file
|
|
42
43
|
|
|
43
44
|
========
|
|
44
45
|
scaevola
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
scaevola/__init__.py,sha256=KAt5tVgdikLvbdauzJTkCsxH3vJKrff4LB1CH8OklYM,57
|
|
2
|
+
scaevola/core.py,sha256=sIUidpHSEZrT3t-MW_CgesG81fFpBW6cch73t3QHmTk,2365
|
|
3
|
+
scaevola/tests/__init__.py,sha256=QhiVlxbRnZlt4CSCc4yAPIRHo-BVzKpxzl80CmZC_Js,256
|
|
4
|
+
scaevola/tests/test_0.py,sha256=K5M1B5GfH5gX3ZqHXtyCd5WZrI3SsZNSKDon5z13KQI,1088
|
|
5
|
+
scaevola/tests/test_op.py,sha256=OfXTuqdPouiZontb-aVZ5r33uTYijibkpO0Kmf4veKU,5115
|
|
6
|
+
scaevola-1.0.14.dist-info/licenses/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
|
|
7
|
+
scaevola-1.0.14.dist-info/METADATA,sha256=oKpEPNrGq7frtJTKC50ATGFmfud4RPP151ii45IXTnY,2334
|
|
8
|
+
scaevola-1.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
scaevola-1.0.14.dist-info/top_level.txt,sha256=1oM62lKpwPWVxHtGCB2tN-TIs0bzZaSkB9dlI3Eoesw,9
|
|
10
|
+
scaevola-1.0.14.dist-info/RECORD,,
|
scaevola-1.0.12.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
scaevola/__init__.py,sha256=KAt5tVgdikLvbdauzJTkCsxH3vJKrff4LB1CH8OklYM,57
|
|
2
|
-
scaevola/core.py,sha256=DgSJ9ak-VqupPjB6ICwbglDhtmG-id58FlZ30unpU64,2269
|
|
3
|
-
scaevola/tests/__init__.py,sha256=QhiVlxbRnZlt4CSCc4yAPIRHo-BVzKpxzl80CmZC_Js,256
|
|
4
|
-
scaevola/tests/test_0.py,sha256=K5M1B5GfH5gX3ZqHXtyCd5WZrI3SsZNSKDon5z13KQI,1088
|
|
5
|
-
scaevola/tests/test_op.py,sha256=OfXTuqdPouiZontb-aVZ5r33uTYijibkpO0Kmf4veKU,5115
|
|
6
|
-
scaevola-1.0.12.dist-info/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
|
|
7
|
-
scaevola-1.0.12.dist-info/METADATA,sha256=-fyLrXibFoG9YbmZsQ7lMM1BvHsDjoDWR5jdtjDrr6I,2315
|
|
8
|
-
scaevola-1.0.12.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
-
scaevola-1.0.12.dist-info/top_level.txt,sha256=1oM62lKpwPWVxHtGCB2tN-TIs0bzZaSkB9dlI3Eoesw,9
|
|
10
|
-
scaevola-1.0.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|