Skip to content

Commit f011f1a

Browse files
committed
work around mypy issues
1 parent 65f52a2 commit f011f1a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

whole_repo_tests/test_mypy.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ def test_stateful_target_params_mutually_exclusive(tmp_path, decorator):
326326
"target_args",
327327
[
328328
"target=b1",
329-
"targets=(b1,)",
329+
# FIXME: temporary workaround for mypy bug, see hypothesis/pull/4136
330+
pytest.param("targets=(b1,)", marks=pytest.mark.xfail(strict=False)),
330331
"targets=(b1, b2)",
331332
"",
332333
],
@@ -563,7 +564,14 @@ def test_bar(x: str) -> None:
563564
assert_mypy_errors(f, [], python_version=python_version)
564565

565566

566-
@pytest.mark.parametrize("python_version", PYTHON_VERSIONS)
567+
@pytest.mark.parametrize(
568+
"python_version",
569+
[
570+
# FIXME: temporary workaround for mypy bug, see hypothesis/pull/4136
571+
pytest.param(v, marks=[pytest.mark.xfail(strict=False)] * (v == "3.13"))
572+
for v in PYTHON_VERSIONS
573+
],
574+
)
567575
def test_given_only_allows_strategies(tmp_path, python_version):
568576
f = tmp_path / "check_mypy_given_expects_strategies.py"
569577
f.write_text(

0 commit comments

Comments
 (0)