Add __hash__ for a bunch of types that set it to None (#13286)

This commit is contained in:
Stephen Morton authored and GitHub committed 2024-12-23 23:16:22 -08:00
1 parent 1f0a86ceb4
commit 3944c7839e
32 files changed
+69 -27

No files matched your search

+4 -2
View File
@@ -1,5 +1,5 @@
import sys
from typing import Any, final
from typing import Any, ClassVar, final
class Str(str): ...
@@ -17,6 +17,8 @@ if sys.version_info >= (3, 10):
else:
class error(Exception): ...
class Null: ...
class Null:
__hash__: ClassVar[None] # type: ignore[assignment]
def roj(b: Any, /) -> None: ...