We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f51c21 commit b7d769fCopy full SHA for b7d769f
2 files changed
pyproject.toml
@@ -115,6 +115,7 @@ source = [
115
[tool.coverage.report]
116
exclude_also = [
117
"@overload",
118
+ "class .*\\bProtocol\\):",
119
]
120
121
[tool.ruff]
src/cattrs/v/_validators.py
@@ -5,11 +5,11 @@
5
T = TypeVar("T")
6
7
8
-class Comparable(Protocol):
+class Comparable(Protocol[T]):
9
def __lt__(self: T, other: T) -> bool:
10
...
11
12
- def __le__(self: T, other: T) -> bool:
+ def __eq__(self: T, other: T) -> bool:
13
14
15
0 commit comments