MCPcopy Index your code
hub / github.com/python/mypy / replace_statements

Method replace_statements

mypy/server/astmerge.py:406–412  ·  view source on GitHub ↗
(self, nodes: list[Statement])

Source from the content-addressed store, hash-verified

404 node.node.accept(self)
405
406 def replace_statements(self, nodes: list[Statement]) -> list[Statement]:
407 result = []
408 for node in nodes:
409 if isinstance(node, SymbolNode):
410 node = self.fixup(node)
411 result.append(node)
412 return result
413
414
415class TypeReplaceVisitor(SyntheticTypeVisitor[None]):

Callers 3

visit_mypy_fileMethod · 0.95
visit_blockMethod · 0.95
visit_class_defMethod · 0.95

Calls 3

fixupMethod · 0.95
isinstanceFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected