Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/traitlets
/ A
Class
A
tests/test_traitlets.py:815–817 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
813
class
TestHasTraits(TestCase):
814
def
test_trait_names(self):
815
class
A(HasTraits):
816
i = Int()
817
f = Float()
818
819
a = A()
820
self.assertEqual(sorted(a.trait_names()), [
"f"
,
"i"
])
Callers
nothing calls this directly
Calls
3
Int
Class · 0.90
Float
Class · 0.90
tag
Method · 0.80
Tested by
no test coverage detected