Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Int
Class · 0.90
Dict
Class · 0.90
Union
Class · 0.90
CInt
Class · 0.90
Unicode
Class · 0.90
tag
Method · 0.80
Tested by
no test coverage detected