{ } Raw JSON

bundles / traitlets 5.16.2 / traitlets / traitlets / is_trait

function

traitlets.traitlets:is_trait

source: /traitlets/traitlets.py:218

Signature

def is_trait(t: t.Any) → bool

Summary

Returns whether the given value is an instance or subclass of TraitType.

Aliases

  • traitlets.traitlets.is_trait