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

Method __init__

examples/myapp.py:57–62  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

55 mode = Enum(values=["on", "off", "other"], default_value="on").tag(config=True)
56
57 def __init__(self, **kwargs):
58 super().__init__(**kwargs)
59 # using parent=self allows configuration in the form c.Foo.SubConfigurable.subvalue=1
60 # while c.SubConfigurable.subvalue=1 will still work, this allow to
61 # target specific instances of SubConfigurables
62 self.subconf = SubConfigurable(parent=self)
63
64 def describe(self):
65 print("I am Foo with:")

Callers 1

__init__Method · 0.45

Calls 1

SubConfigurableClass · 0.85

Tested by

no test coverage detected