Skip to content

Commit 2690b83

Browse files
committed
mypy fix
1 parent 88c20cd commit 2690b83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

commitizen/version_schemes.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import warnings
66
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
88

99
import importlib_metadata as metadata
1010
from packaging.version import InvalidVersion # noqa: F401: Rexpose the common exception
@@ -93,19 +93,19 @@ def micro(self) -> int:
9393
"""The third item of :attr:`release` or ``0`` if unavailable."""
9494
raise NotImplementedError("must be implemented")
9595

96-
def __lt__(self, other: VersionProtocol) -> bool:
96+
def __lt__(self, other: Any) -> bool:
9797
raise NotImplementedError("must be implemented")
9898

99-
def __le__(self, other: VersionProtocol) -> bool:
99+
def __le__(self, other: Any) -> bool:
100100
raise NotImplementedError("must be implemented")
101101

102102
def __eq__(self, other: object) -> bool:
103103
raise NotImplementedError("must be implemented")
104104

105-
def __ge__(self, other: VersionProtocol) -> bool:
105+
def __ge__(self, other: Any) -> bool:
106106
raise NotImplementedError("must be implemented")
107107

108-
def __gt__(self, other: VersionProtocol) -> bool:
108+
def __gt__(self, other: Any) -> bool:
109109
raise NotImplementedError("must be implemented")
110110

111111
def __ne__(self, other: object) -> bool:

0 commit comments

Comments
 (0)