Skip to content

Commit a96572a

Browse files
committed
fix: update mypy config for CI compatibility
Bump python_version to 3.9 (mypy dropped 3.8 support) and add PIL to ignore_missing_imports.
1 parent 53ba8b4 commit a96572a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ markers = [
7575
addopts = "-m 'not resource_intensive'"
7676

7777
[tool.mypy]
78-
python_version = "3.8"
78+
python_version = "3.9"
7979
packages = ["paddleocr"]
8080
warn_return_any = false
8181
warn_unused_configs = true
8282
disallow_untyped_defs = false
8383

8484
[[tool.mypy.overrides]]
85-
module = ["paddlex.*", "paddle.*", "yaml.*", "requests.*"]
85+
module = ["paddlex.*", "paddle.*", "yaml.*", "requests.*", "PIL.*"]
8686
ignore_missing_imports = true

0 commit comments

Comments
 (0)