Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/traitlets
/ C
Class
C
tests/test_traitlets.py:1152–1153 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1150
self.assertEqual(b.inst.d, 20)
1151
1152
class
C(HasTraits):
1153
inst = Instance(Foo, allow_none=True)
1154
1155
c = C()
1156
self.assertTrue(c.inst is None)
Callers
nothing calls this directly
Calls
1
Instance
Class · 0.90
Tested by
no test coverage detected