Skip to content

Commit

Permalink
More precise ignore directive for mypy (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Mar 1, 2023
1 parent bf8d70c commit 5c9aeeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c9aeeb

Please sign in to comment.