MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/argparse.py:1000–1017  ·  view source on GitHub ↗
(self,
                 option_strings,
                 dest,
                 const=None,
                 default=None,
                 required=False,
                 help=None,
                 metavar=None,
                 deprecated=False)

Source from the content-addressed store, hash-verified

998class _StoreConstAction(Action):
999
1000 def __init__(self,
1001 option_strings,
1002 dest,
1003 const=None,
1004 default=None,
1005 required=False,
1006 help=None,
1007 metavar=None,
1008 deprecated=False):
1009 super(_StoreConstAction, self).__init__(
1010 option_strings=option_strings,
1011 dest=dest,
1012 nargs=0,
1013 const=const,
1014 default=default,
1015 required=required,
1016 help=help,
1017 deprecated=deprecated)
1018
1019 def __call__(self, parser, namespace, values, option_string=None):
1020 setattr(namespace, self.dest, self.const)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected