mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-11 15:49:12 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
1 parent
1f0a86ceb4
commit
3944c7839e
32 files changed
+69
-27
No files matched your search
@@ -1,6 +1,6 @@
|
||||
from collections.abc import Callable, Iterator
|
||||
from email.message import Message
|
||||
from typing import Final, overload
|
||||
from typing import ClassVar, Final, overload
|
||||
|
||||
__all__ = ["Charset", "add_alias", "add_charset", "add_codec"]
|
||||
|
||||
@@ -24,6 +24,7 @@ class Charset:
|
||||
def body_encode(self, string: None) -> None: ...
|
||||
@overload
|
||||
def body_encode(self, string: str | bytes) -> str: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __ne__(self, value: object, /) -> bool: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user