mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
stdlib mapping classes: Use better names for various pos-only parameters (#8637)
This commit is contained in:
@@ -115,16 +115,16 @@ class SupportsItems(Protocol[_KT_co, _VT_co]):
|
||||
# stable
|
||||
class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
|
||||
def keys(self) -> Iterable[_KT]: ...
|
||||
def __getitem__(self, __k: _KT) -> _VT_co: ...
|
||||
def __getitem__(self, __key: _KT) -> _VT_co: ...
|
||||
|
||||
# stable
|
||||
class SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]):
|
||||
def __getitem__(self, __k: _KT_contra) -> _VT_co: ...
|
||||
def __getitem__(self, __key: _KT_contra) -> _VT_co: ...
|
||||
|
||||
# stable
|
||||
class SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]):
|
||||
def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ...
|
||||
def __delitem__(self, __v: _KT_contra) -> None: ...
|
||||
def __setitem__(self, __key: _KT_contra, __value: _VT) -> None: ...
|
||||
def __delitem__(self, __key: _KT_contra) -> None: ...
|
||||
|
||||
StrPath: TypeAlias = str | PathLike[str] # stable
|
||||
BytesPath: TypeAlias = bytes | PathLike[bytes] # stable
|
||||
|
||||
Reference in New Issue
Block a user