mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
optparse.check_choice returns value type (#7209)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user