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

Class Example2

tests/test_traitlets_enum.py:133–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 def test_ctor_without_default_value(self):
132 # -- IMPLICIT: default_value = Color.red (first enum-value)
133 class Example2(HasTraits):
134 color = UseEnum(Color)
135
136 example = Example2()
137 self.assertEqual(example.color, Color.red)

Calls 1

UseEnumClass · 0.90

Used in the wild real call sites across dependent graphs

searching dependent graphs…