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

Method error

mypy/build.py:1558–1571  ·  view source on GitHub ↗
(
        self,
        line: int | None,
        msg: str,
        code: ErrorCode | None = None,
        *,
        blocker: bool = False,
        only_once: bool = False,
    )

Source from the content-addressed store, hash-verified

1556 return False
1557
1558 def error(
1559 self,
1560 line: int | None,
1561 msg: str,
1562 code: ErrorCode | None = None,
1563 *,
1564 blocker: bool = False,
1565 only_once: bool = False,
1566 ) -> None:
1567 if line is None:
1568 line = column = -1
1569 else:
1570 column = 0
1571 self.errors.report(line, column, msg, code, blocker=blocker, only_once=only_once)
1572
1573 def note(
1574 self, line: int | None, msg: str, code: ErrorCode | None = None, *, only_once: bool = False

Callers 11

__init__Method · 0.95
correct_rel_impMethod · 0.95
write_deps_cacheFunction · 0.45
write_plugins_snapshotFunction · 0.45
_load_json_fileFunction · 0.45
module_not_foundFunction · 0.45
skipping_moduleFunction · 0.45
skipping_ancestorFunction · 0.45
load_graphFunction · 0.45

Calls 1

reportMethod · 0.45

Tested by

no test coverage detected