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

Method __init__

mypy/errors.py:399–417  ·  view source on GitHub ↗
(
        self,
        errors: Errors,
        iteration_dependent_errors: IterationDependentErrors,
        *,
        filter_errors: bool | Callable[[str, ErrorInfo], bool] = False,
        save_filtered_errors: bool = False,
        filter_deprecated: bool = False,
    )

Source from the content-addressed store, hash-verified

397 iteration_dependent_errors: IterationDependentErrors
398
399 def __init__(
400 self,
401 errors: Errors,
402 iteration_dependent_errors: IterationDependentErrors,
403 *,
404 filter_errors: bool | Callable[[str, ErrorInfo], bool] = False,
405 save_filtered_errors: bool = False,
406 filter_deprecated: bool = False,
407 ) -> None:
408 super().__init__(
409 errors,
410 filter_errors=filter_errors,
411 save_filtered_errors=save_filtered_errors,
412 filter_deprecated=filter_deprecated,
413 )
414 self.iteration_dependent_errors = iteration_dependent_errors
415 iteration_dependent_errors.uselessness_errors.append(set())
416 iteration_dependent_errors.nonoverlapping_types.append({})
417 iteration_dependent_errors.unreachable_lines.append(set())
418
419 def on_error(self, file: str, info: ErrorInfo) -> bool:
420 """Filter out the "iteration-dependent" errors and notes and store their

Callers

nothing calls this directly

Calls 3

setClass · 0.85
appendMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected