mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-13 00:20:10 +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:
16 files changed
+62
-62
No files matched your search
@@ -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