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] [mypy-lxml]
ignore_missing_imports = True ignore_missing_imports = True
[mypy-tomllib]
ignore_missing_imports = True

View file

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

View file

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

View file

@ -9,7 +9,7 @@ from pathlib import Path
try: try:
import tomllib import tomllib
except ModuleNotFoundError: except ModuleNotFoundError:
import tomli as tomllib import tomli as tomllib # type: ignore
import pytest import pytest
import pytest_asyncio import pytest_asyncio