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

Method format_node

mypy/inspections.py:361–362  ·  view source on GitHub ↗
(self, module: State, node: FuncBase | SymbolNode)

Source from the content-addressed store, hash-verified

359 return self.add_prefixes(f'{{{", ".join(base_attrs)}}}', expression), True
360
361 def format_node(self, module: State, node: FuncBase | SymbolNode) -> str:
362 return f"{module.path}:{node.line}:{node.column + 1}:{node.name}"
363
364 def collect_nodes(self, expression: RefExpr) -> list[FuncBase | SymbolNode]:
365 """Collect nodes that can be referred to by an expression.

Callers 1

expression_defMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected