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 5d7d33e commit 662fc75Copy full SHA for 662fc75
pyproject.toml
@@ -109,6 +109,11 @@ source = [
109
".tox/pypy*/site-packages",
110
]
111
112
+[tool.coverage.report]
113
+exclude_also = [
114
+ "class .*\\bProtocol\\):",
115
+]
116
+
117
[tool.ruff]
118
src = ["src", "tests"]
119
select = [
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