silence mypy for new module

This commit is contained in:
lilydjwg 2023-05-08 23:28:20 +08:00
parent 34e87db8f9
commit e9ecbd514b
4 changed files with 6 additions and 3 deletions

View File

@ -20,3 +20,6 @@ ignore_missing_imports = True
[mypy-lxml]
ignore_missing_imports = True
[mypy-tomllib]
ignore_missing_imports = True

View File

@ -25,7 +25,7 @@ import structlog
try:
import tomllib
except ModuleNotFoundError:
import tomli as tomllib
import tomli as tomllib # type: ignore
import platformdirs

View File

@ -17,7 +17,7 @@ import abc
try:
import tomllib
except ModuleNotFoundError:
import tomli as tomllib
import tomli as tomllib # type: ignore
import structlog

View File

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