Reduce use of Any in equality methods (#7081)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Alex Waygood
2022-01-29 22:59:00 +00:00
committed by GitHub
parent 9aeecb4c35
commit 45a2dad83c
21 changed files with 38 additions and 37 deletions

View File

@@ -41,6 +41,6 @@ class DFAState:
def __init__(self, nfaset: dict[NFAState, Any], final: NFAState) -> None: ...
def addarc(self, next: DFAState, label: Text) -> None: ...
def unifystate(self, old: DFAState, new: DFAState) -> None: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: DFAState) -> bool: ... # type: ignore[override]
def generate_grammar(filename: StrPath = ...) -> PgenGrammar: ...

View File

@@ -20,7 +20,7 @@ class Base:
children: list[_NL]
was_changed: bool
was_checked: bool
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def _eq(self: _P, other: _P) -> bool: ...
def clone(self: Self) -> Self: ...
def post_order(self) -> Iterator[_NL]: ...