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

Method instance_init

traitlets/traitlets.py:483–492  ·  view source on GitHub ↗

Part of the initialization which may depend on the underlying HasDescriptors instance. It is typically overloaded for specific types. This method is called by :meth:`HasTraits.__new__` and in the :meth:`BaseDescriptor.instance_init` method of descriptors holding

(self, obj: t.Any)

Source from the content-addressed store, hash-verified

481 cls._instance_inits.append(self.instance_init)
482
483 def instance_init(self, obj: t.Any) -> None:
484 """Part of the initialization which may depend on the underlying
485 HasDescriptors instance.
486
487 It is typically overloaded for specific types.
488
489 This method is called by :meth:`HasTraits.__new__` and in the
490 :meth:`BaseDescriptor.instance_init` method of descriptors holding
491 other descriptors.
492 """
493
494
495G = TypeVar("G")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected