optparse.check_choice returns value type (#7209)

This commit is contained in:
Nikita Sobolev
2022-02-15 01:14:03 +03:00
committed by GitHub
parent a8141e14ae
commit 4293ad0483

View File

@@ -6,7 +6,7 @@ SUPPRESS_HELP: str
SUPPRESS_USAGE: str
def check_builtin(option: Option, opt: Any, value: str) -> Any: ...
def check_choice(option: Option, opt: Any, value: str) -> Any: ...
def check_choice(option: Option, opt: Any, value: str) -> str: ...
class OptParseError(Exception):
msg: str