Fix type annotate

This commit is contained in:
Jahongir Qurbonov 2024-08-31 19:47:59 +05:00
parent 34c4845909
commit 381096bf41

View File

@ -31,7 +31,7 @@ class Combinable(abc.ABC):
rhs = other.filters if isinstance(other, All) else (other,)
return All(*lhs, *rhs)
def __invert__(self) -> "Not" | FilterType:
def __invert__(self) -> "Not | FilterType":
return self.filter if isinstance(self, Not) else Not(self)
@abc.abstractmethod