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

Method class_init

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

Source from the content-addressed store, hash-verified

3841 return tuple(validated)
3842
3843 def class_init(self, cls: type[t.Any], name: str | None) -> None:
3844 for trait in self._traits:
3845 if isinstance(trait, TraitType):
3846 trait.class_init(cls, None)
3847 super(Container, self).class_init(cls, name)
3848
3849 def subclass_init(self, cls: type[t.Any]) -> None:
3850 for trait in self._traits:

Callers

nothing calls this directly

Calls 1

class_initMethod · 0.45

Tested by

no test coverage detected