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

Function expr_span

mypy/inspections.py:55–57  ·  view source on GitHub ↗

Format expression span as in mypy error messages.

(expr: Expression)

Source from the content-addressed store, hash-verified

53
54
55def expr_span(expr: Expression) -> str:
56 """Format expression span as in mypy error messages."""
57 return f"{expr.line}:{expr.column + 1}:{expr.end_line}:{expr.end_column}"
58
59
60def get_instance_fallback(typ: ProperType) -> list[Instance]:

Callers 2

missing_nodeMethod · 0.85
add_prefixesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…