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

Method class_init

traitlets/traitlets.py:2446–2449  ·  view source on GitHub ↗
(self, cls: type[HasTraits], name: str | None)

Source from the content-addressed store, hash-verified

2444 return default
2445
2446 def class_init(self, cls: type[HasTraits], name: str | None) -> None:
2447 for trait_type in reversed(self.trait_types):
2448 trait_type.class_init(cls, None)
2449 super().class_init(cls, name)
2450
2451 def subclass_init(self, cls: type[t.Any]) -> None:
2452 for trait_type in reversed(self.trait_types):

Callers

nothing calls this directly

Calls 1

class_initMethod · 0.45

Tested by

no test coverage detected