scaevola 1.0.11__py3-none-any.whl → 1.0.12__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/tests/__init__.py +1 -1
- scaevola/tests/test_0.py +41 -0
- {scaevola-1.0.11.dist-info → scaevola-1.0.12.dist-info}/METADATA +8 -8
- scaevola-1.0.12.dist-info/RECORD +10 -0
- {scaevola-1.0.11.dist-info → scaevola-1.0.12.dist-info}/WHEEL +1 -1
- scaevola-1.0.11.dist-info/RECORD +0 -9
- /scaevola/tests/{tests_operators.py → test_op.py} +0 -0
- {scaevola-1.0.11.dist-info → scaevola-1.0.12.dist-info}/LICENSE.txt +0 -0
- {scaevola-1.0.11.dist-info → scaevola-1.0.12.dist-info}/top_level.txt +0 -0
scaevola/core.py
CHANGED
|
@@ -5,65 +5,65 @@ __all__ = ["Scaevola"]
|
|
|
5
5
|
|
|
6
6
|
class Scaevola:
|
|
7
7
|
def __ge__(self, other: Any) -> Any:
|
|
8
|
-
"
|
|
8
|
+
"This magic method implements self>=other."
|
|
9
9
|
return type(self)(other) <= self
|
|
10
10
|
|
|
11
11
|
def __gt__(self, other: Any) -> Any:
|
|
12
|
-
"
|
|
12
|
+
"This magic method implements self>other."
|
|
13
13
|
return type(self)(other) < self
|
|
14
14
|
|
|
15
15
|
def __radd__(self, other: Any) -> Any:
|
|
16
|
-
"
|
|
16
|
+
"This magic method implements other+self."
|
|
17
17
|
return type(self)(other) + self
|
|
18
18
|
|
|
19
19
|
def __rand__(self, other: Any) -> Any:
|
|
20
|
-
"
|
|
20
|
+
"This magic method implements other&self."
|
|
21
21
|
return type(self)(other) & self
|
|
22
22
|
|
|
23
23
|
def __rdivmod__(self, other: Any) -> Any:
|
|
24
|
-
"
|
|
24
|
+
"This magic method implements divmod(other, self)."
|
|
25
25
|
return divmod(type(self)(other), self)
|
|
26
26
|
|
|
27
27
|
def __rfloordiv__(self, other: Any) -> Any:
|
|
28
|
-
"
|
|
28
|
+
"This magic method implements other//self."
|
|
29
29
|
return type(self)(other) // self
|
|
30
30
|
|
|
31
31
|
def __rlshift__(self, other: Any) -> Any:
|
|
32
|
-
"
|
|
32
|
+
"This magic method implements other<<self."
|
|
33
33
|
return type(self)(other) << self
|
|
34
34
|
|
|
35
35
|
def __rmatmul__(self, other: Any) -> Any:
|
|
36
|
-
"
|
|
36
|
+
"This magic method implements other@self."
|
|
37
37
|
return type(self)(other) @ self
|
|
38
38
|
|
|
39
39
|
def __rmod__(self, other: Any) -> Any:
|
|
40
|
-
"
|
|
40
|
+
"This magic method implements other%self."
|
|
41
41
|
return type(self)(other) % self
|
|
42
42
|
|
|
43
43
|
def __rmul__(self, other: Any) -> Any:
|
|
44
|
-
"
|
|
44
|
+
"This magic method implements other*self."
|
|
45
45
|
return type(self)(other) * self
|
|
46
46
|
|
|
47
47
|
def __ror__(self, other: Any) -> Any:
|
|
48
|
-
"
|
|
48
|
+
"This magic method implements other|self."
|
|
49
49
|
return type(self)(other) | self
|
|
50
50
|
|
|
51
51
|
def __rpow__(self, other: Any) -> Any:
|
|
52
|
-
"
|
|
52
|
+
"This magic method implements pow(other, self)."
|
|
53
53
|
return type(self)(other) ** self
|
|
54
54
|
|
|
55
55
|
def __rrshift__(self, other: Any) -> Any:
|
|
56
|
-
"
|
|
56
|
+
"This magic method implements other>>self."
|
|
57
57
|
return type(self)(other) >> self
|
|
58
58
|
|
|
59
59
|
def __rsub__(self, other: Any) -> Any:
|
|
60
|
-
"
|
|
60
|
+
"This magic method implements other-self."
|
|
61
61
|
return type(self)(other) - self
|
|
62
62
|
|
|
63
63
|
def __rtruediv__(self, other: Any) -> Any:
|
|
64
|
-
"
|
|
64
|
+
"This magic method implements other/self."
|
|
65
65
|
return type(self)(other) / self
|
|
66
66
|
|
|
67
67
|
def __rxor__(self, other: Any) -> Any:
|
|
68
|
-
"
|
|
68
|
+
"This magic method implements other^self."
|
|
69
69
|
return type(self)(other) ^ self
|
scaevola/tests/__init__.py
CHANGED
scaevola/tests/test_0.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
|
|
3
|
+
from scaevola.core import Scaevola
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestScaevolaDocstrings(unittest.TestCase):
|
|
7
|
+
def test_methods_have_docstrings(self):
|
|
8
|
+
methods_to_check = [
|
|
9
|
+
"__ge__",
|
|
10
|
+
"__gt__",
|
|
11
|
+
"__radd__",
|
|
12
|
+
"__rand__",
|
|
13
|
+
"__rdivmod__",
|
|
14
|
+
"__rfloordiv__",
|
|
15
|
+
"__rlshift__",
|
|
16
|
+
"__rmatmul__",
|
|
17
|
+
"__rmod__",
|
|
18
|
+
"__rmul__",
|
|
19
|
+
"__ror__",
|
|
20
|
+
"__rpow__",
|
|
21
|
+
"__rrshift__",
|
|
22
|
+
"__rsub__",
|
|
23
|
+
"__rtruediv__",
|
|
24
|
+
"__rxor__",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
for name in methods_to_check:
|
|
28
|
+
method = getattr(Scaevola, name, None)
|
|
29
|
+
with self.subTest(method=name):
|
|
30
|
+
self.assertIsNotNone(
|
|
31
|
+
method.__doc__, f"Method {name} is missing a docstring"
|
|
32
|
+
)
|
|
33
|
+
self.assertGreater(
|
|
34
|
+
len(method.__doc__.strip()),
|
|
35
|
+
0,
|
|
36
|
+
f"Method {name} has an empty docstring",
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
if __name__ == "__main__":
|
|
41
|
+
unittest.main()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: scaevola
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Summary: class with preset right handed magic methods
|
|
3
|
+
Version: 1.0.12
|
|
4
|
+
Summary: This project provides a class with preset right handed magic methods.
|
|
5
5
|
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
@@ -24,16 +24,18 @@ License: The MIT License (MIT)
|
|
|
24
24
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
26
|
SOFTWARE.
|
|
27
|
-
Project-URL: Documentation, https://pypi.org/project/scaevola
|
|
28
27
|
Project-URL: Download, https://pypi.org/project/scaevola/#files
|
|
29
28
|
Project-URL: Index, https://pypi.org/project/scaevola/
|
|
30
|
-
Project-URL: Source, https://github.com/johannes-programming/scaevola
|
|
29
|
+
Project-URL: Source, https://github.com/johannes-programming/scaevola/
|
|
31
30
|
Project-URL: Website, https://scaevola.johannes-programming.online/
|
|
32
31
|
Classifier: Development Status :: 5 - Production/Stable
|
|
33
32
|
Classifier: License :: OSI Approved :: MIT License
|
|
33
|
+
Classifier: Natural Language :: English
|
|
34
|
+
Classifier: Operating System :: OS Independent
|
|
34
35
|
Classifier: Programming Language :: Python
|
|
35
36
|
Classifier: Programming Language :: Python :: 3
|
|
36
37
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
+
Classifier: Typing :: Typed
|
|
37
39
|
Requires-Python: >=3.8
|
|
38
40
|
Description-Content-Type: text/x-rst
|
|
39
41
|
License-File: LICENSE.txt
|
|
@@ -42,6 +44,4 @@ License-File: LICENSE.txt
|
|
|
42
44
|
scaevola
|
|
43
45
|
========
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
Visit the website for more information:
|
|
47
|
-
`https://scaevola.johannes-programming.online <https://scaevola.johannes-programming.online>`_
|
|
47
|
+
Visit the website for more information: `https://scaevola.johannes-programming.online/ <https://scaevola.johannes-programming.online/>`_
|
|
@@ -0,0 +1,10 @@
|
|
|
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,,
|
scaevola-1.0.11.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|