Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python/mypy
/ get_subexpressions
Function
get_subexpressions
mypy/server/subexpr.py:40–43 ·
view source on GitHub ↗
(node: Node)
Source
from the content-addressed store, hash-verified
38
39
40
def
get_subexpressions(node: Node) -> list[Expression]:
41
visitor = SubexpressionFinder()
42
node.accept(visitor)
43
return
visitor.expressions
44
45
46
class
SubexpressionFinder(TraverserVisitor):
Callers
2
run_case
Method · 0.90
dump_types
Method · 0.90
Calls
2
SubexpressionFinder
Class · 0.85
accept
Method · 0.45
Tested by
2
run_case
Method · 0.72
dump_types
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…