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

Method class_init

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

Source from the content-addressed store, hash-verified

1289 self.trait_name = name
1290
1291 def class_init(self, cls: type[HasTraits], name: str | None) -> None:
1292 super().class_init(cls, name)
1293 cls._trait_default_generators[self.trait_name] = self
1294
1295
1296class HasDescriptors(metaclass=MetaHasDescriptors):

Callers

nothing calls this directly

Calls 1

class_initMethod · 0.45

Tested by

no test coverage detected