Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ipython/ipython
/ test_SubClass
Function
test_SubClass
tests/test_dir2.py:21–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
20
21
def
test_SubClass():
22
class
SubClass(Base):
23
y = 2
24
25
res = dir2(SubClass())
26
assert
"y"
in res
27
assert res.count(
"y"
) == 1
28
assert res.count(
"x"
) == 1
29
30
31
def
test_SubClass_with_trait_names_attr():
Callers
nothing calls this directly
Calls
2
dir2
Function · 0.90
SubClass
Class · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…