Skip to content

Commit cf0fed1

Browse files
committed
fix: annotate _COMPARATORS with ClassVar in AbstractConstraint
1 parent aa24448 commit cf0fed1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/rules/constraint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from collections.abc import Callable, Generator, Iterable
55
from dataclasses import dataclass, field
66
from pathlib import Path
7-
from typing import Any, Self, final, override
7+
from typing import Any, ClassVar, Self, final, override
88

99
from more_itertools import first_true
1010

@@ -116,7 +116,7 @@ def _handled_args[T](self, normalizer: Callable[[T], T] | None = None) -> tuple[
116116
args = map(normalizer, args)
117117
return tuple(args)
118118

119-
_COMPARATORS: dict[str, Callable[[Any, Any], bool]] = {
119+
_COMPARATORS: ClassVar[dict[str, Callable[[Any, Any], bool]]] = {
120120
"<": operator.lt,
121121
"lt": operator.lt,
122122
# ...

0 commit comments

Comments
 (0)