summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-12 21:02:54 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-12 21:04:26 -0500
commitb059a67fd1fe5d514f7c283f5ab99052e1cea15f (patch)
treec2f80b395589ecc83daf189b5b8a2fd54b3ee97a
parent2be37e3d695af882ccedd71168f82ffd12bca961 (diff)
downloadpython-coveragepy-git-b059a67fd1fe5d514f7c283f5ab99052e1cea15f.tar.gz
mypy: turn on disallow_untyped_decorators
-rw-r--r--pyproject.toml3
-rw-r--r--tests/test_oddball.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 4f2b5936..b21ba3b7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,13 +6,12 @@ requires = ['setuptools']
build-backend = 'setuptools.build_meta'
[tool.mypy]
-# mypy settings started from https://quantlane.com/blog/type-checking-large-codebase/
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
-disallow_untyped_decorators = false
+disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "silent"
ignore_missing_imports = true
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index 23e3ce9d..e4147dc6 100644
--- a/tests/test_oddball.py
+++ b/tests/test_oddball.py
@@ -155,7 +155,7 @@ class MemoryLeakTest(CoverageTest):
It may still fail occasionally, especially on PyPy.
"""
- @flaky
+ @flaky # type: ignore[misc]
@pytest.mark.skipif(not env.C_TRACER, reason="Only the C tracer has refcounting issues")
def test_for_leaks(self) -> None:
# Our original bad memory leak only happened on line numbers > 255, so