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

Method instance_init

traitlets/traitlets.py:2172–2175  ·  view source on GitHub ↗
(self, obj: t.Any)

Source from the content-addressed store, hash-verified

2170 return result
2171
2172 def instance_init(self, obj: t.Any) -> None:
2173 # we can't do this in subclass_init because that
2174 # might be called before all imports are done.
2175 self._resolve_classes()
2176
2177 def _resolve_classes(self) -> None:
2178 if isinstance(self.klass, str):

Callers 2

__setstate__Method · 0.45
add_traitsMethod · 0.45

Calls 1

_resolve_classesMethod · 0.95

Tested by

no test coverage detected