You are viewing an older version (5.14.3). Go to latest (5.15.0)
{ } Raw JSON

bundles / traitlets 5.14.3 / traitlets / traitlets / is_trait

function

traitlets.traitlets:is_trait

source: /traitlets/traitlets.py :189

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