Set correct type for _subparsersaction.choices (#2702)

choices=_name_parser_map, see a11d44056e/Lib/argparse.py (L1097)
This commit is contained in:
Daniel Mouritzen
2018-12-21 04:44:30 +01:00
committed by Jelle Zijlstra
parent c18b75b2e6
commit fb8b77e715

View File

@@ -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],