mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from _typeshed import Incomplete, SupportsGetItem, SupportsLenAndGetItem, Unused
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Iterable, Iterator, MutableSequence
|
||||
from typing import Final
|
||||
from typing import ClassVar, Final
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from .fixer_base import BaseFix
|
||||
@@ -24,6 +24,7 @@ class Base:
|
||||
was_changed: bool
|
||||
was_checked: bool
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
@abstractmethod
|
||||
def _eq(self, other: Base) -> bool: ...
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user