Precise return type of HelpFormatter.format_option_strings() (#4896)

Always returns a str:
https://github.com/python/cpython/blob/v3.9.1/Lib/optparse.py#L366
This commit is contained in:
Jon Dufresne
2021-01-03 16:07:12 -08:00
committed by GitHub
parent c45a879b1f
commit 61c61d2db4

View File

@@ -60,7 +60,7 @@ class HelpFormatter:
def format_epilog(self, epilog: _Text) -> _Text: ...
def format_heading(self, heading: Any) -> _Text: ...
def format_option(self, option: OptionParser) -> _Text: ...
def format_option_strings(self, option: OptionParser) -> Any: ...
def format_option_strings(self, option: OptionParser) -> _Text: ...
def format_usage(self, usage: Any) -> _Text: ...
def indent(self) -> None: ...
def set_long_opt_delimiter(self, delim: _Text) -> None: ...