bundles / traitlets latest / traitlets / traitlets / TraitType / __get__
function
traitlets.traitlets:TraitType.__get__
source: /traitlets/traitlets.py:721
Signature
def __get__(self, obj: HasTraits | None, cls: type[t.Any]) → Self | GSummary
Get the value of the trait by self.name for the instance.
Extended Summary
Default values are instantiated when HasTraits.__new__ is called. Thus by the time this method gets called either the default value or a user defined value (they called __set__) is in the HasTraits instance.
Aliases
traitlets.TraitType.__get__