mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 19:12:31 +08:00
Added missing type annotations and type arguments (#5070)
Co-authored-by: Eric Traut <erictr@microsoft.com> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
This commit is contained in:
co-authored by
Eric Traut
Shantanu
parent
bf583da275
commit
4b4ced5fa0
@@ -7,7 +7,7 @@ _VT = TypeVar("_VT")
|
||||
|
||||
class frozendict(Mapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
|
||||
dict_cls: Type[Dict] = ...
|
||||
dict_cls: Type[Dict[Any, Any]] = ...
|
||||
@overload
|
||||
def __init__(self, **kwargs: _VT) -> None: ...
|
||||
@overload
|
||||
@@ -22,6 +22,6 @@ class frozendict(Mapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
def __repr__(self) -> str: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
class FrozenOrderedDict(frozendict):
|
||||
class FrozenOrderedDict(frozendict[_KT, _VT]):
|
||||
|
||||
dict_cls: Type[collections.OrderedDict] = ...
|
||||
dict_cls: Type[collections.OrderedDict[Any, Any]] = ...
|
||||
|
||||
Reference in New Issue
Block a user