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

Class FnError

mypyc/analysis/ircheck.py:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84class FnError:
85 def __init__(self, source: Op | BasicBlock, desc: str) -> None:
86 self.source = source
87 self.desc = desc
88
89 def __eq__(self, other: object) -> bool:
90 return (
91 isinstance(other, FnError) and self.source == other.source and self.desc == other.desc
92 )
93
94 def __repr__(self) -> str:
95 return f"FnError(source={self.source}, desc={self.desc})"
96
97
98def check_func_ir(fn: FuncIR) -> list[FnError]:

Callers 10

test_invalid_gotoMethod · 0.90
test_invalid_assignMethod · 0.90
test_duplicate_opMethod · 0.90
check_func_irFunction · 0.85
check_op_sources_validFunction · 0.85
failMethod · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…