From c2cd8786d1a6fefef7bbb0ad00549eb0015dc9dd Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 23 Jan 2024 19:41:38 +0000 Subject: [PATCH] make mypy as strict as possible --- pyproject.toml | 8 ++++++++ .../example_scripts/unittest/test_unittest_asynctest.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d45597b77..bc0e090aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,3 +123,11 @@ target-version = ['py38'] [tool.check-wheel-contents] # W009: Wheel contains multiple toplevel library entries ignore = "W009" + +[tool.mypy] +strict = true +disallow_untyped_defs = false +disallow_incomplete_defs = false +disallow_untyped_calls = false +warn_unused_ignores = false +ignore_missing_imports = true diff --git a/testing/example_scripts/unittest/test_unittest_asynctest.py b/testing/example_scripts/unittest/test_unittest_asynctest.py index fb2661706..3c17bd074 100644 --- a/testing/example_scripts/unittest/test_unittest_asynctest.py +++ b/testing/example_scripts/unittest/test_unittest_asynctest.py @@ -8,7 +8,7 @@ import asynctest teardowns: List[None] = [] -class Test(asynctest.TestCase): +class Test(asynctest.TestCase): # type: ignore[misc] async def tearDown(self): teardowns.append(None)