Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python/mypy
/ mark_block_mypy_only
Function
mark_block_mypy_only
mypy/reachability.py:353–354 ·
view source on GitHub ↗
(block: Block)
Source
from the content-addressed store, hash-verified
351
352
353
def
mark_block_mypy_only(block: Block) -> None:
354
block.accept(MarkImportsMypyOnlyVisitor())
355
356
357
class
MarkImportsMypyOnlyVisitor(TraverserVisitor):
Callers
2
infer_reachability_of_if_statement
Function · 0.85
infer_reachability_of_match_statement
Function · 0.85
Calls
2
MarkImportsMypyOnlyVisitor
Class · 0.85
accept
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…