Skip to content

Commit d1e614f

Browse files
committed
only run mypy test compliance on 3.12
1 parent a13849b commit d1e614f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

requirements/ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ xlrd>=2.0.1
1919
pytest-rerunfailures
2020
jupyterlab<4.0.0
2121
pyright==1.1.398;python_version>="3.7"
22-
mypy==1.15.0
22+
mypy==1.15.0;python_version>="3.12"

tests/integration/test_typing.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,13 @@ def test_typi001_component_typing(arguments, assertions, tmp_path):
319319
assert_output(codefile, code, module="pyright", **assertions)
320320

321321

322-
@pytest.mark.parametrize("typing_module", ["pyright", "mypy"])
322+
typing_modules = ["pyright"]
323+
324+
if sys.version_info.minor >= 12:
325+
typing_modules.append("mypy")
326+
327+
328+
@pytest.mark.parametrize("typing_module", typing_modules)
323329
@pytest.mark.parametrize(
324330
"prelayout, layout, callback_return, assertions",
325331
[

0 commit comments

Comments
 (0)