diff --git a/mypy.ini b/mypy.ini index 35e49cb..555b18e 100644 --- a/mypy.ini +++ b/mypy.ini @@ -20,3 +20,6 @@ ignore_missing_imports = True [mypy-lxml] ignore_missing_imports = True + +[mypy-tomllib] +ignore_missing_imports = True diff --git a/nvchecker/core.py b/nvchecker/core.py index 3721fd3..def7afa 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -25,7 +25,7 @@ import structlog try: import tomllib except ModuleNotFoundError: - import tomli as tomllib + import tomli as tomllib # type: ignore import platformdirs diff --git a/nvchecker/util.py b/nvchecker/util.py index 7878069..c6456e3 100644 --- a/nvchecker/util.py +++ b/nvchecker/util.py @@ -17,7 +17,7 @@ import abc try: import tomllib except ModuleNotFoundError: - import tomli as tomllib + import tomli as tomllib # type: ignore import structlog diff --git a/tests/conftest.py b/tests/conftest.py index b25fc6c..efa9d76 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,7 +9,7 @@ from pathlib import Path try: import tomllib except ModuleNotFoundError: - import tomli as tomllib + import tomli as tomllib # type: ignore import pytest import pytest_asyncio