mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 19:26:45 +08:00
Fix default of dict.get (#13222)
This commit is contained in:
+1
-1
@@ -1143,7 +1143,7 @@ class dict(MutableMapping[_KT, _VT]):
|
||||
def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> dict[_T, _S]: ...
|
||||
# Positional-only in dict, but not in MutableMapping
|
||||
@overload # type: ignore[override]
|
||||
def get(self, key: _KT, /) -> _VT | None: ...
|
||||
def get(self, key: _KT, default: None = None, /) -> _VT | None: ...
|
||||
@overload
|
||||
def get(self, key: _KT, default: _VT, /) -> _VT: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user