Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 673df90

Browse files
committed
tests: fix test
1 parent 4c1b4d9 commit 673df90

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

noxfile.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,15 @@ def __call__(self, frag):
164164
silent=True,
165165
)
166166
)
167-
168-
self.session.run(
169-
"mypy",
170-
str(tmp_dir),
171-
"--check-untyped-defs",
172-
"--exclude",
173-
"build/",
174-
)
167+
# Only run mypy on the latest python
168+
if self.session.python in (ALL_PYTHON[-1]):
169+
self.session.run(
170+
"mypy",
171+
str(tmp_dir),
172+
"--check-untyped-defs",
173+
"--exclude",
174+
"build/",
175+
)
175176
return "".join(outputs)
176177

177178

0 commit comments

Comments
 (0)