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

Method __init__

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

Source from the content-addressed store, hash-verified

961class _StoreAction(Action):
962
963 def __init__(self,
964 option_strings,
965 dest,
966 nargs=None,
967 const=None,
968 default=None,
969 type=None,
970 choices=None,
971 required=False,
972 help=None,
973 metavar=None,
974 deprecated=False):
975 if nargs == 0:
976 raise ValueError('nargs for store actions must be != 0; if you '
977 'have nothing to store, actions such as store '
978 'true or store const may be more appropriate')
979 if const is not None and nargs != OPTIONAL:
980 raise ValueError('nargs must be %r to supply const' % OPTIONAL)
981 super(_StoreAction, self).__init__(
982 option_strings=option_strings,
983 dest=dest,
984 nargs=nargs,
985 const=const,
986 default=default,
987 type=type,
988 choices=choices,
989 required=required,
990 help=help,
991 metavar=metavar,
992 deprecated=deprecated)
993
994 def __call__(self, parser, namespace, values, option_string=None):
995 setattr(namespace, self.dest, values)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected