Skip to content

Commit f81c9eb

Browse files
committed
Make pytest_mypy a (typed) package
1 parent 9f8f03c commit f81c9eb

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/pytest_mypy/py.typed

Whitespace-only changes.

tests/test_pytest_mypy.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,3 +540,11 @@ def pytest_configure(config):
540540
result.assert_outcomes(passed=mypy_checks)
541541
assert result.ret == pytest.ExitCode.OK
542542
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

Comments
 (0)