|
4 | 4 | import sys
|
5 | 5 | import warnings
|
6 | 6 | from itertools import zip_longest
|
7 |
| -from typing import TYPE_CHECKING, ClassVar, Protocol, Type, cast, runtime_checkable |
| 7 | +from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Type, cast, runtime_checkable |
8 | 8 |
|
9 | 9 | import importlib_metadata as metadata
|
10 | 10 | from packaging.version import InvalidVersion # noqa: F401: Rexpose the common exception
|
@@ -93,19 +93,19 @@ def micro(self) -> int:
|
93 | 93 | """The third item of :attr:`release` or ``0`` if unavailable."""
|
94 | 94 | raise NotImplementedError("must be implemented")
|
95 | 95 |
|
96 |
| - def __lt__(self, other: VersionProtocol) -> bool: |
| 96 | + def __lt__(self, other: Any) -> bool: |
97 | 97 | raise NotImplementedError("must be implemented")
|
98 | 98 |
|
99 |
| - def __le__(self, other: VersionProtocol) -> bool: |
| 99 | + def __le__(self, other: Any) -> bool: |
100 | 100 | raise NotImplementedError("must be implemented")
|
101 | 101 |
|
102 | 102 | def __eq__(self, other: object) -> bool:
|
103 | 103 | raise NotImplementedError("must be implemented")
|
104 | 104 |
|
105 |
| - def __ge__(self, other: VersionProtocol) -> bool: |
| 105 | + def __ge__(self, other: Any) -> bool: |
106 | 106 | raise NotImplementedError("must be implemented")
|
107 | 107 |
|
108 |
| - def __gt__(self, other: VersionProtocol) -> bool: |
| 108 | + def __gt__(self, other: Any) -> bool: |
109 | 109 | raise NotImplementedError("must be implemented")
|
110 | 110 |
|
111 | 111 | def __ne__(self, other: object) -> bool:
|
|
0 commit comments