We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8f03c commit f81c9ebCopy full SHA for f81c9eb
src/pytest_mypy.py src/pytest_mypy/__init__.pysrc/pytest_mypy.py renamed to src/pytest_mypy/__init__.py
src/pytest_mypy/py.typed
tests/test_pytest_mypy.py
@@ -540,3 +540,11 @@ def pytest_configure(config):
540
result.assert_outcomes(passed=mypy_checks)
541
assert result.ret == pytest.ExitCode.OK
542
assert f"= {pytest_mypy.terminal_summary_title} =" not in str(result.stdout)
543
+
544
545
+def test_py_typed(testdir):
546
+ """Mypy recognizes that pytest_mypy is typed."""
547
+ name = "typed"
548
+ testdir.makepyfile(**{name: "import pytest_mypy"})
549
+ result = testdir.run("mypy", f"{name}.py")
550
+ assert result.ret == 0
0 commit comments