Make usage in argparse.HelpFormatter._format_usage optional (#7983)

closes #7982
This commit is contained in:
hamdanal
2022-05-30 00:21:20 +02:00
committed by GitHub
parent 5be7976fe3
commit b151e0c5a7

View File

@@ -309,7 +309,7 @@ class HelpFormatter:
def format_help(self) -> str: ...
def _join_parts(self, part_strings: Iterable[str]) -> str: ...
def _format_usage(
self, usage: str, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: str | None
self, usage: str | None, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: str | None
) -> str: ...
def _format_actions_usage(self, actions: Iterable[Action], groups: Iterable[_ArgumentGroup]) -> str: ...
def _format_text(self, text: str) -> str: ...