{ } Raw JSON

bundles / traitlets latest / 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