Skip to content

Commit

Permalink
Ignore matplotlib mypy erorrs because of Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Jun 28, 2024
1 parent 857cbe0 commit 14f8a5a
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,27 +143,16 @@ exclude = [
]

[[tool.mypy.overrides]]
module = "_datetime.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "requests_toolbelt.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
# torch is an optional dependency
module = "torch.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "ultralytics.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
# IPython is an optional dependency
module = "IPython.display.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "ipywidgets.*"
module =
"_datetime.*",
# IPython is an optional dependency
"IPython.display.*",
# ipywidgets is an optional dependency
"ipywidgets.*",
# matplotlib typing is not available for Python 3.8
# remove this when we stop supporting Python 3.8
"matplotlib",
"requests_toolbelt.*",
"torch.*",
"ultralytics.*",
ignore_missing_imports = true

0 comments on commit 14f8a5a

Please sign in to comment.