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

Class Foo

tests/test_traitlets.py:292–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291 def test_union_metadata(self):
292 class Foo(HasTraits):
293 bar = (Int().tag(ta=1) | Dict().tag(ta=2, ti="b")).tag(ti="a")
294
295 foo = Foo()
296 # At this point, no value has been set for bar, so value-specific

Callers

nothing calls this directly

Calls 6

IntClass · 0.90
DictClass · 0.90
UnionClass · 0.90
CIntClass · 0.90
UnicodeClass · 0.90
tagMethod · 0.80

Tested by

no test coverage detected