We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0930f9e commit 6c89f41Copy full SHA for 6c89f41
whole-repo-tests/test_mypy.py
@@ -10,6 +10,7 @@
10
11
import os
12
import subprocess
13
+import textwrap
14
15
import pytest
16
@@ -343,6 +344,23 @@ def test_stateful_consumed_bundle_cannot_be_target(tmpdir):
343
344
assert_mypy_errors(str(f.realpath()), [(3, "call-overload")])
345
346
347
+def test_raises_for_mixed_pos_kwargs_in_given(tmpdir):
348
+ f = tmpdir.join("raises_for_mixed_pos_kwargs_in_given")
349
+ f.write(
350
+ textwrap.dedent(
351
+ """
352
+ from hypothesis import given
353
+ from hypothesis.strategies import text
354
+
355
+ @given(text(), x=text()) # type: ignore
356
+ def test_bar(x):
357
+ ...
358
359
+ )
360
361
+ assert_mypy_errors(str(f.realpath()), [(5, "call-overload")])
362
363
364
@pytest.mark.parametrize(
365
"return_val,errors",
366
[
0 commit comments