Skip to content

Commit c5f3d37

Browse files
authored
Merge pull request #50 from George-Ogden/mypy-error
Ignore flushed files when reporting errors
2 parents 96da481 + 82eec80 commit c5f3d37

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mypy_pytest_plugin/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def parse_multiple(modules: Sequence[tuple[str, str]], *, header: str = "") -> M
133133
raise ValueError(f"Unable to infer types. Errors: {state.early_errors}")
134134

135135
type_checker = state.type_checker()
136+
type_checker.msg.errors.flushed_files.clear()
137+
136138
errors = type_checker.errors
137139
if errors.is_errors():
138140
for info in errors.error_info_map.values():

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "mypy-pytest-plugin"
33
requires-python = ">=3.12,<3.15"
4-
version = "2.1.0"
4+
version = "2.1.1"
55
dynamic = ["dependencies"]
66

77
[tool.setuptools]

0 commit comments

Comments
 (0)