File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 4646__all__ = ("AutoprogrammDirective" , "import_object" , "scan_programs" , "setup" )
4747
4848
49- # Need to temporarily disable this particular check, because although this function is guaranteed to return a proper
50- # value (due to how ArgumentParser works), pytype doesn't really know that, and therefore raised an error
51- # in the (to its view) possible fallthrough of "implicit return None" if the "for a" loop exits without finding the
52- # right item.
49+ # Need to temporarily disable this particular check, because although this function
50+ # is guaranteed to return a proper value (due to how ArgumentParser works), pytype
51+ # doesn't really know that, and therefore raised an error in the (to its view)
52+ # possible fallthrough of "implicit return None" if the "for a" loop exits without
53+ # finding the right item.
5354#
5455# pytype: disable=bad-return-type
55- def get_subparser_action (parser : argparse .ArgumentParser ) -> argparse ._SubParsersAction :
56+ def get_subparser_action (
57+ parser : argparse .ArgumentParser
58+ ) -> argparse ._SubParsersAction :
5659 neg1_action = parser ._actions [- 1 ]
5760
5861 if isinstance (neg1_action , argparse ._SubParsersAction ):
You can’t perform that action at this time.
0 commit comments