MCPcopy Create free account
hub / github.com/ipython/traitlets / class_trait_names

Method class_trait_names

traitlets/traitlets.py:1775–1781  ·  view source on GitHub ↗

Get a list of all the names of this class' traits. This method is just like the :meth:`trait_names` method, but is unbound.

(cls: type[HasTraits], **metadata: t.Any)

Source from the content-addressed store, hash-verified

1773
1774 @classmethod
1775 def class_trait_names(cls: type[HasTraits], **metadata: t.Any) -> list[str]:
1776 """Get a list of all the names of this class' traits.
1777
1778 This method is just like the :meth:`trait_names` method,
1779 but is unbound.
1780 """
1781 return list(cls.class_traits(**metadata))
1782
1783 @classmethod
1784 def class_traits(cls: type[HasTraits], **metadata: t.Any) -> dict[str, TraitType[t.Any, t.Any]]:

Callers 1

test_trait_namesMethod · 0.80

Calls 1

class_traitsMethod · 0.80

Tested by 1

test_trait_namesMethod · 0.64