From d7086fb8ec8acf5293c88fe34748ea8fbfbb0044 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:06:23 +0100 Subject: [PATCH] Better ignore directive for mypy --- codespell_lib/_codespell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index a082e6d1a9..9f211247b7 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -553,7 +553,7 @@ def parse_options( tomllib_raise_error = True if toml_files: try: - import tomllib # type: ignore + import tomllib # type: ignore[import] except ModuleNotFoundError: try: import tomli as tomllib