mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -2,7 +2,7 @@ import sys
|
||||
from _typeshed import FileDescriptorLike
|
||||
from collections.abc import Iterable
|
||||
from types import TracebackType
|
||||
from typing import Any, final
|
||||
from typing import Any, ClassVar, final
|
||||
from typing_extensions import Self
|
||||
|
||||
if sys.platform != "win32":
|
||||
@@ -53,6 +53,7 @@ if sys.platform != "linux" and sys.platform != "win32":
|
||||
data: Any = ...,
|
||||
udata: Any = ...,
|
||||
) -> None: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
# BSD only
|
||||
@final
|
||||
|
||||
Reference in New Issue
Block a user