mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
@@ -753,10 +753,10 @@ class list(MutableSequence[_T], Generic[_T]):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
|
||||
class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
# NOTE: Keyword arguments are special. If they are used, _KT must include
|
||||
# str, but we have no way of enforcing it here.
|
||||
@overload
|
||||
def __init__(self, **kwargs: _VT) -> None: ...
|
||||
def __init__(self: Dict[_KT, _VT]) -> None: ...
|
||||
@overload
|
||||
def __init__(self: Dict[str, _VT], **kwargs: _VT) -> None: ...
|
||||
@overload
|
||||
def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user