Skip to content

Commit 2cbacaf

Browse files
Copilotbact
andcommitted
Fix mypy error with extra dependencies: remove unused type ignore for importlib_resources
Co-authored-by: bact <128572+bact@users.noreply.github.com>
1 parent 931cbfb commit 2cbacaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythainlp/tools/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
if version_info >= (3, 11):
1717
from importlib.resources import files # Available in Python 3.11+
1818
else:
19-
from importlib_resources import files # type: ignore[import-not-found,no-redef] # noqa: I001
19+
from importlib_resources import files # noqa: I001
2020

2121
PYTHAINLP_DEFAULT_DATA_DIR: str = "pythainlp-data"
2222

0 commit comments

Comments
 (0)