fix: typing issues

This commit is contained in:
2023-11-02 00:21:33 +08:00
parent 0764308638
commit 92fcc53015
3 changed files with 13 additions and 14 deletions

View File

@ -86,7 +86,7 @@ class ArcaeaParser:
# or maybe a `pathlib.Path` subset
# or an `importlib.resources.abc.Traversable` like object
# e.g. `zipfile.Path`
file_handle = self.filepath.open(mode="r", encoding="utf-8")
file_handle = self.filepath.open(mode="r", encoding="utf-8") # type: ignore
except Exception as e:
raise ValueError("Invalid `filepath`.") from e