Move mypy disable for async_timeout to mypy.ini (#593)

This commit is contained in:
J. Nick Koston 2023-10-20 06:25:20 -10:00 committed by GitHub
parent 741308c93f
commit 359ed510a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,6 @@ from .core import (
)
from .model import APIVersion
# mypy: disable-error-code="import-not-found"
if sys.version_info[:2] < (3, 11):
from async_timeout import timeout as asyncio_timeout
else:

View File

@ -4,3 +4,6 @@ show_error_codes = true
strict = true
warn_unreachable = true
[mypy-async_timeout.*]
ignore_missing_imports = True