Skip to content

Commit 7a6bd02

Browse files
Ignore flaky sampling_jax.py mypy results
1 parent 80b5e86 commit 7a6bd02

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/run_mypy.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ def check_no_unexpected_results(mypy_lines: Iterator[str]):
159159
print("\n".join(sorted(map(str, unexpected_failing))))
160160
sys.exit(1)
161161

162-
if unexpected_passing:
162+
if unexpected_passing == {"pymc/sampling_jax.py"}:
163+
print("Letting you know that 'pymc/sampling_jax.py' unexpectedly passed.")
164+
print("But this file is known to sometimes pass and sometimes not.")
165+
print("Unless tried to resolve problems in sampling_jax.py just ignore this message.")
166+
elif unexpected_passing:
163167
print(f"{len(unexpected_passing)} files unexpectedly passed the type checks:")
164168
print("\n".join(sorted(map(str, unexpected_passing))))
165169
print("This is good news! Go to scripts/run-mypy.py and add them to the list.")

0 commit comments

Comments
 (0)