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

Class NS

Lib/test/test_argparse.py:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125class NS(object):
126
127 def __init__(self, **kwargs):
128 self.__dict__.update(kwargs)
129
130 def __repr__(self):
131 sorted_items = sorted(self.__dict__.items())
132 kwarg_str = ', '.join(['%s=%r' % tup for tup in sorted_items])
133 return '%s(%s)' % (type(self).__name__, kwarg_str)
134
135 def __eq__(self, other):
136 return vars(self) == vars(other)
137
138
139class ArgumentParserError(Exception):

Calls

no outgoing calls

Tested by 15

testMethod · 0.56
__call__Method · 0.56
__call__Method · 0.56
testMethod · 0.56
test_parse_argsMethod · 0.56
test_parse_known_argsMethod · 0.56
test_abbreviationMethod · 0.56
test_destMethod · 0.56
test_alias_invocationMethod · 0.56
test_nongroup_firstMethod · 0.56
test_group_firstMethod · 0.56