mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -5,7 +5,7 @@ from collections.abc import Callable, Iterable, Mapping, Sequence
|
||||
from tkinter.constants import *
|
||||
from tkinter.font import _FontDescription
|
||||
from types import TracebackType
|
||||
from typing import Any, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
|
||||
from typing import Any, ClassVar, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
|
||||
from typing_extensions import TypeAlias, TypeVarTuple, Unpack, deprecated
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
@@ -330,6 +330,7 @@ class Variable:
|
||||
def trace_vinfo(self): ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __del__(self) -> None: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
class StringVar(Variable):
|
||||
def __init__(self, master: Misc | None = None, value: str | None = None, name: str | None = None) -> None: ...
|
||||
|
||||
@@ -58,6 +58,7 @@ class Font:
|
||||
underline: bool = ...,
|
||||
overstrike: bool = ...,
|
||||
) -> None: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
def __setitem__(self, key: str, value: Any) -> None: ...
|
||||
@overload
|
||||
def cget(self, option: Literal["family"]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user