| 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 |