mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
stdlib: correct many pos-or-kw arg names in dunder methods (#7451)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user