Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix annotation of keyword-only arguments
  • Loading branch information
itaisteinherz committed Feb 23, 2022
commit 55a29dac4095cfbf7a8f42e82293d5a73b4eed7c
52 changes: 28 additions & 24 deletions stdlib/importlib/metadata/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ class EntryPoint(_EntryPointBase):
dist: ClassVar[Distribution | None]
def matches(
Comment thread
itaisteinherz marked this conversation as resolved.
self,
__name: str = ...,
__value: str = ...,
__group: str = ...,
__module: str = ...,
__attr: str = ...,
__extras: list[str] = ...,
*,
name: str = ...,
value: str = ...,
group: str = ...,
module: str = ...,
attr: str = ...,
extras: list[str] = ...,
Comment thread
itaisteinherz marked this conversation as resolved.
) -> bool: ... # undocumented

if sys.version_info >= (3, 10):
Expand All @@ -77,12 +78,13 @@ if sys.version_info >= (3, 10):
def __getitem__(self, item: int | str) -> EntryPoint: ... # type: ignore[override]
def select(
self,
__name: str = ...,
__value: str = ...,
__group: str = ...,
__module: str = ...,
__attr: str = ...,
__extras: list[str] = ...,
*,
name: str = ...,
value: str = ...,
group: str = ...,
module: str = ...,
attr: str = ...,
extras: list[str] = ...,
) -> EntryPoints: ...
@property
def names(self) -> set[str]: ...
Expand All @@ -101,12 +103,13 @@ if sys.version_info >= (3, 10):
@overload
def select(
self,
__name: str = ...,
__value: str = ...,
__group: str = ...,
__module: str = ...,
__attr: str = ...,
__extras: list[str] = ...,
*,
name: str = ...,
value: str = ...,
group: str = ...,
module: str = ...,
attr: str = ...,
extras: list[str] = ...,
) -> EntryPoints: ...

class PackagePath(pathlib.PurePosixPath):
Expand Down Expand Up @@ -198,12 +201,13 @@ if sys.version_info >= (3, 10):
def entry_points() -> SelectableGroups: ... # type: ignore[misc]
@overload
def entry_points(
__name: str = ...,
__value: str = ...,
__group: str = ...,
__module: str = ...,
__attr: str = ...,
__extras: list[str] = ...,
*,
name: str = ...,
value: str = ...,
group: str = ...,
module: str = ...,
attr: str = ...,
extras: list[str] = ...,
) -> EntryPoints: ...

else:
Expand Down