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

Class State

mypy/nativeparse.py:169–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169class State:
170 def __init__(self, options: Options) -> None:
171 self.options = options
172 self.errors: list[ParseError] = []
173 self.num_funcs = 0
174
175 def add_error(
176 self, message: str, line: int, column: int, *, blocker: bool = False, code: str
177 ) -> None:
178 """Report an error at a specific location."""
179 self.errors.append(
180 {"line": line, "column": column, "message": message, "blocker": blocker, "code": code}
181 )
182
183
184def native_parse(

Callers 2

load_from_rawFunction · 0.90
load_treeFunction · 0.90

Calls

no outgoing calls

Tested by 1

load_treeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…