Skip to content

Commit d1d1816

Browse files
authored
commit 9
1 parent 59dc076 commit d1d1816

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/weakref.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _typeshed import SupportsKeysAndGetItem
22
from _weakref import getweakrefcount as getweakrefcount, getweakrefs as getweakrefs, proxy as proxy
33
from _weakrefset import WeakSet as WeakSet
4-
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
4+
from collections.abc import Callable, Hashable, Iterable, Iterator, Mapping, MutableMapping
55
from types import GenericAlias
66
from typing import Any, ClassVar, Generic, ParamSpec, TypeVar, final, overload
77
from typing_extensions import Self, disjoint_base
@@ -25,7 +25,7 @@ __all__ = [
2525
_T = TypeVar("_T")
2626
_T1 = TypeVar("_T1")
2727
_T2 = TypeVar("_T2")
28-
_KT = TypeVar("_KT")
28+
_KT = TypeVar("_KT", bound=Hashable)
2929
_VT = TypeVar("_VT")
3030
_CallableT = TypeVar("_CallableT", bound=Callable[..., Any])
3131
_P = ParamSpec("_P")

0 commit comments

Comments
 (0)