From 5c9aeeb0136a0d0b81890ff08fc9bd802148921a Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 1 Mar 2023 17:35:33 +0100 Subject: [PATCH] More precise ignore directive for mypy (#2760) --- 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