Skip to content

Commit

Permalink
Missing mypy stubs in for dateutil.relativedelta
Browse files Browse the repository at this point in the history
Mypy reported a couple of errors for missing stubs on GitHub
https://github.com/theupdateframework/python-tuf/runs/4431787287?check_suite_focus=true

The error noted that:
"tests/test_api.py:19: error: Library stubs not installed for
"dateutil.relativedelta" (or incompatible with Python 3.10)"
In order to resolve it I added this library to the list of libraries
that we ignore their missing stubs or types.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
  • Loading branch information
MVrachev committed Dec 7, 2021
1 parent 8506e9b commit 317b9d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ exclude=".*_old.py"
[[tool.mypy.overrides]]
module = [
"securesystemslib.*",
"urllib3.*"
"urllib3.*",
"dateutil.relativedelta",
]
ignore_missing_imports = "True"

0 comments on commit 317b9d1

Please sign in to comment.