stdlib: Use pos-only parameters for many Protocols (#10985)

This commit is contained in:
Jelle Zijlstra
2023-11-06 09:09:04 -08:00
committed by GitHub
parent a5c1a4cd3f
commit 5030b7419b
9 changed files with 14 additions and 14 deletions

View File

@@ -120,7 +120,7 @@ class _ActionsContainer:
def _handle_conflict_resolve(self, action: Action, conflicting_actions: Iterable[tuple[str, Action]]) -> None: ...
class _FormatterClass(Protocol):
def __call__(self, prog: str) -> HelpFormatter: ...
def __call__(self, *, prog: str) -> HelpFormatter: ...
class ArgumentParser(_AttributeHolder, _ActionsContainer):
prog: str