From 61c61d2db41e4a3d335d60e68737b04b37cd002f Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 3 Jan 2021 16:07:12 -0800 Subject: [PATCH] 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 --- stdlib/2and3/optparse.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/optparse.pyi b/stdlib/2and3/optparse.pyi index 76f7be471..8fb468844 100644 --- a/stdlib/2and3/optparse.pyi +++ b/stdlib/2and3/optparse.pyi @@ -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: ...