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

Method add_error

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

Report an error at a specific location.

(
        self, message: str, line: int, column: int, *, blocker: bool = False, code: str
    )

Source from the content-addressed store, hash-verified

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

read_call_typeFunction · 0.80
fail_merge_overloadFunction · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected