make mypy as strict as possible

This commit is contained in:
Thomas Grainger 2024-01-23 19:41:38 +00:00
parent d972957303
commit c2cd8786d1
No known key found for this signature in database
GPG Key ID: DDA48B5C47FBC8C8
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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)