bundles / traitlets latest / traitlets / traitlets / TraitType / __set__
function
traitlets.traitlets:TraitType.__set__
source: /traitlets/traitlets.py:758
Signature
def __set__(self, obj: HasTraits, value: S) → NoneSummary
Set the value of the trait by self.name for the instance.
Extended Summary
Values pass through a validation stage where errors are raised when impropper types, or types that cannot be coerced, are encountered.
Aliases
traitlets.TraitType.__set__