mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Set correct type for _subparsersaction.choices (#2702)
choices=_name_parser_map, see a11d44056e/Lib/argparse.py (L1097)
This commit is contained in:
committed by
Jelle Zijlstra
parent
c18b75b2e6
commit
fb8b77e715
@@ -383,6 +383,7 @@ class _SubParsersAction(Action):
|
||||
_prog_prefix: _Text
|
||||
_parser_class: Type[ArgumentParser]
|
||||
_name_parser_map: Dict[_Text, ArgumentParser]
|
||||
choices: Dict[_Text, ArgumentParser]
|
||||
_choices_actions: List[Action]
|
||||
def __init__(self,
|
||||
option_strings: Sequence[_Text],
|
||||
|
||||
Reference in New Issue
Block a user