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

Method class_init

traitlets/traitlets.py:3515–3518  ·  view source on GitHub ↗
(self, cls: type[t.Any], name: str | None)

Source from the content-addressed store, hash-verified

3513 return self.klass(validated) # type:ignore[call-arg]
3514
3515 def class_init(self, cls: type[t.Any], name: str | None) -> None:
3516 if isinstance(self._trait, TraitType):
3517 self._trait.class_init(cls, None)
3518 super().class_init(cls, name)
3519
3520 def subclass_init(self, cls: type[t.Any]) -> None:
3521 if isinstance(self._trait, TraitType):

Callers

nothing calls this directly

Calls 1

class_initMethod · 0.45

Tested by

no test coverage detected