cmp3 0.3.0__py3-none-any.whl → 0.3.1__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.
cmp3/core/__init__.py CHANGED
@@ -15,27 +15,27 @@ def comparable(*, overwrites: Any = False) -> partial:
15
15
  def update_rich_cmp(cls: type, /, *, overwrites: Any = False) -> type:
16
16
  @setdoc.basic
17
17
  def __eq__(self: Self, other: Any) -> Any:
18
- return self.__cmp__(other) == 0
18
+ return self.__cmp__(other).__eq__(0)
19
19
 
20
20
  @setdoc.basic
21
21
  def __ge__(self: Self, other: Any) -> Any:
22
- return self.__cmp__(other) >= 0
22
+ return self.__cmp__(other).__ge__(0)
23
23
 
24
24
  @setdoc.basic
25
25
  def __gt__(self: Self, other: Any) -> Any:
26
- return self.__cmp__(other) > 0
26
+ return self.__cmp__(other).__gt__(0)
27
27
 
28
28
  @setdoc.basic
29
29
  def __le__(self: Self, other: Any) -> Any:
30
- return self.__cmp__(other) <= 0
30
+ return self.__cmp__(other).__le__(0)
31
31
 
32
32
  @setdoc.basic
33
33
  def __lt__(self: Self, other: Any) -> Any:
34
- return self.__cmp__(other) < 0
34
+ return self.__cmp__(other).__lt__(0)
35
35
 
36
36
  @setdoc.basic
37
37
  def __ne__(self: Self, other: Any) -> Any:
38
- return self.__cmp__(other) != 0
38
+ return self.__cmp__(other).__ne__(0)
39
39
 
40
40
  func: Callable
41
41
  funcs: list[Callable]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cmp3
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: This project updates the concept of __cmp__ for python3.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -0,0 +1,9 @@
1
+ cmp3/__init__.py,sha256=hxvwX8wZhft-DkMAoU3xz65RMZib8nPQQiAbxba27iQ,49
2
+ cmp3/core/__init__.py,sha256=6Pn8YmgnSvLZDff_F5itjqbpd3a-FSE5hytxe-uQry0,1725
3
+ cmp3/tests/__init__.py,sha256=HqmxhnTFFqh9Nzl7STV5GeDYqDmhrc9e1TCHssUbC1s,426
4
+ cmp3/tests/test_1984.py,sha256=_ami0cAP8vU0C8RpQhP1tLWnLFGTaeHlOG5O60RVKv8,222
5
+ cmp3-0.3.1.dist-info/licenses/LICENSE.txt,sha256=Jb9jm2E2hEO2LqnWwHeHt4cneyCbnZ1SBte0bgb9qoY,1074
6
+ cmp3-0.3.1.dist-info/METADATA,sha256=X8-00Sc5gEgG9F_lBw1wYDvvpdVC7KpxufedMa0GhVE,2300
7
+ cmp3-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ cmp3-0.3.1.dist-info/top_level.txt,sha256=FzJWsf0Xj_eeRJuFle30ZFjVZs8ahy7oLhYdWx8YkgA,5
9
+ cmp3-0.3.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- cmp3/__init__.py,sha256=hxvwX8wZhft-DkMAoU3xz65RMZib8nPQQiAbxba27iQ,49
2
- cmp3/core/__init__.py,sha256=jLukhlBTfYZkkBhS0gCJPQTq4Px4EfDh3rY6qMG5xUw,1693
3
- cmp3/tests/__init__.py,sha256=HqmxhnTFFqh9Nzl7STV5GeDYqDmhrc9e1TCHssUbC1s,426
4
- cmp3/tests/test_1984.py,sha256=_ami0cAP8vU0C8RpQhP1tLWnLFGTaeHlOG5O60RVKv8,222
5
- cmp3-0.3.0.dist-info/licenses/LICENSE.txt,sha256=Jb9jm2E2hEO2LqnWwHeHt4cneyCbnZ1SBte0bgb9qoY,1074
6
- cmp3-0.3.0.dist-info/METADATA,sha256=c1HZ1QvVT43fKubcoCx5PHnT0mjNjLKbBZdAdlscipE,2300
7
- cmp3-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- cmp3-0.3.0.dist-info/top_level.txt,sha256=FzJWsf0Xj_eeRJuFle30ZFjVZs8ahy7oLhYdWx8YkgA,5
9
- cmp3-0.3.0.dist-info/RECORD,,
File without changes