mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-27 20:12:21 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user