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

Method __init__

mypy/errors.py:497–512  ·  view source on GitHub ↗
(
        self,
        options: Options,
        *,
        read_source: Callable[[str], list[str] | None] | None = None,
        hide_error_codes: bool | None = None,
        error_formatter: ErrorFormatter | None = None,
    )

Source from the content-addressed store, hash-verified

495 _watchers: list[ErrorWatcher]
496
497 def __init__(
498 self,
499 options: Options,
500 *,
501 read_source: Callable[[str], list[str] | None] | None = None,
502 hide_error_codes: bool | None = None,
503 error_formatter: ErrorFormatter | None = None,
504 ) -> None:
505 self.options = options
506 self.hide_error_codes = (
507 hide_error_codes if hide_error_codes is not None else options.hide_error_codes
508 )
509 # We use fscache to read source code when showing snippets.
510 self.read_source = read_source
511 self.error_formatter = error_formatter
512 self.initialize()
513
514 def initialize(self) -> None:
515 self.error_info_map = {}

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

initializeMethod · 0.95

Tested by

no test coverage detected