When using mypy, to better deal with typing from dependent packages we need to "advertise" our support of typing. As it it describe at https://www.python.org/dev/peps/pep-0561/#packaging-type-information, if you want mypy to check for correct typing of dependant package and be able to ignore specific ones that don't support it, you need to add a specific marker in your setup.py.
How does this PR work?
This PR is adding the typing marker to the setup.py
Description
When using
mypy
, to better deal with typing from dependent packages we need to "advertise" our support of typing. As it it describe at https://www.python.org/dev/peps/pep-0561/#packaging-type-information, if you wantmypy
to check for correct typing of dependant package and be able to ignore specific ones that don't support it, you need to add a specific marker in yoursetup.py
.How does this PR work?
This PR is adding the typing marker to the setup.py