stdlib: correct many pos-or-kw arg names in dunder methods (#7451)

This commit is contained in:
Alex Waygood
2022-03-07 15:40:03 +00:00
committed by GitHub
parent 626ccdaee2
commit f4ae363b56
27 changed files with 153 additions and 162 deletions

View File

@@ -169,7 +169,7 @@ if sys.version_info >= (3, 9):
@property
def name(self) -> str: ...
@abstractmethod
def __truediv__(self, key: StrPath) -> Traversable: ...
def __truediv__(self, child: StrPath) -> Traversable: ...
@abstractmethod
def read_bytes(self) -> bytes: ...
@abstractmethod

View File

@@ -77,7 +77,7 @@ class EntryPoint(_EntryPointBase):
if sys.version_info >= (3, 10):
class EntryPoints(list[EntryPoint]): # use as list is deprecated since 3.10
# int argument is deprecated since 3.10
def __getitem__(self, item: int | str) -> EntryPoint: ... # type: ignore[override]
def __getitem__(self, name: int | str) -> EntryPoint: ... # type: ignore[override]
def select(
self,
*,