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

Method subclass_init

traitlets/traitlets.py:2451–2455  ·  view source on GitHub ↗
(self, cls: type[t.Any])

Source from the content-addressed store, hash-verified

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):
2453 trait_type.subclass_init(cls)
2454 # explicitly not calling super().subclass_init(cls)
2455 # to opt out of instance_init
2456
2457 def validate(self, obj: t.Any, value: t.Any) -> t.Any:
2458 with obj.cross_validation_lock:

Callers

nothing calls this directly

Calls 1

subclass_initMethod · 0.45

Tested by

no test coverage detected