fix typings of 'argparse.HelpFormatter.add_usage' (#5278)

Closes #5277
This commit is contained in:
danieleades
2021-05-01 19:25:18 +01:00
committed by GitHub
parent 31b6d415dc
commit 545a54e17b

View File

@@ -263,7 +263,7 @@ class HelpFormatter:
def end_section(self) -> None: ...
def add_text(self, text: Optional[Text]) -> None: ...
def add_usage(
self, usage: Text, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] = ...
self, usage: Optional[Text], actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] = ...
) -> None: ...
def add_argument(self, action: Action) -> None: ...
def add_arguments(self, actions: Iterable[Action]) -> None: ...