bundles / traitlets latest / traitlets / traitlets / TraitType / __set__
function
traitlets.traitlets:TraitType.__set__
source: /traitlets/traitlets.py :727
Signature
def __set__ ( self , obj : HasTraits , value : S ) → None Summary
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__