Skip to content

Commit 5c9aeeb

Browse files
More precise ignore directive for mypy (#2760)
1 parent bf8d70c commit 5c9aeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: codespell_lib/_codespell.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def parse_options(
553553
tomllib_raise_error = True
554554
if toml_files:
555555
try:
556-
import tomllib # type: ignore
556+
import tomllib # type: ignore[import]
557557
except ModuleNotFoundError:
558558
try:
559559
import tomli as tomllib

0 commit comments

Comments
 (0)