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

Method __init__

traitlets/traitlets.py:984–989  ·  view source on GitHub ↗

Finish initializing the HasDescriptors class.

(
        cls, name: str, bases: tuple[type, ...], classdict: dict[str, t.Any], **kwds: t.Any
    )

Source from the content-addressed store, hash-verified

982 return super().__new__(mcls, name, bases, classdict, **kwds)
983
984 def __init__(
985 cls, name: str, bases: tuple[type, ...], classdict: dict[str, t.Any], **kwds: t.Any
986 ) -> None:
987 """Finish initializing the HasDescriptors class."""
988 super().__init__(name, bases, classdict, **kwds)
989 cls.setup_class(classdict)
990
991 def setup_class(cls: MetaHasDescriptors, classdict: dict[str, t.Any]) -> None:
992 """Setup descriptor instance on the class

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
setup_classMethod · 0.45

Tested by

no test coverage detected