bundles / traitlets latest / traitlets / traitlets / HasTraits / has_trait
function
traitlets.traitlets:HasTraits.has_trait
source: /traitlets/traitlets.py:1870
Signature
def has_trait(self, name: str) → boolSummary
Returns True if the object has a trait with the specified name.
Aliases
traitlets.HasTraits.has_trait