MCPcopy Create free account
hub / github.com/ipython/traitlets / MyLoader1

Class MyLoader1

tests/config/test_loader.py:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190class MyLoader1(ArgParseConfigLoader):
191 def _add_arguments(self, aliases=None, flags=None, classes=None):
192 p = self.parser
193 p.add_argument("-f", "--foo", dest="Global.foo", type=str)
194 p.add_argument("-b", dest="MyClass.bar", type=int)
195 p.add_argument("-n", dest="n", action="store_true")
196 p.add_argument("Global.bam", type=str)
197 p.add_argument("--list1", action="append", type=_parse_int_or_str)
198 p.add_argument("--list2", nargs="+", type=int)
199
200
201class MyLoader2(ArgParseConfigLoader):

Callers 3

test_basicMethod · 0.85
test_argvMethod · 0.85
test_list_argsMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_basicMethod · 0.68
test_argvMethod · 0.68
test_list_argsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…