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

Method instance_init

tests/test_traitlets.py:415–416  ·  view source on GitHub ↗
(self, inst)

Source from the content-addressed store, hash-verified

413 def test_setup_instance(self):
414 class FooDescriptor(BaseDescriptor):
415 def instance_init(self, inst):
416 foo = inst.foo # instance should have the attr
417
418 class HasFooDescriptors(HasDescriptors):
419 fd = FooDescriptor()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected