Closed robbieculkin closed 1 year ago
Hi, I ran mypy against pusher.py and couldn't couldn't detect the issue. How are you invoking the command?
(venv) benjamintang@Benjamins-MacBook-Pro pusher-http-python % mypy pusher/pusher.py
Success: no issues found in 1 source file
While mypy may succeed when running on files in this repo directly, the pusher repo needs to provide either
py.typed
marker file and inline type-annotated function signaturesin order to comply with the PEP 561 spec, and for mypy type checking to work for any codebase importing from pusher
.
I will add this to our feature requests for our engineering to prioritise.
Many applications use mypy (or similar) for static typechecking. Anyone using a typechecker needs to explicitly ignore checking on pusher imports, since types don't appear to be defined according to the PEP 561 spec.
Is there anything on the roadmap to add PEP 561 compliance to the package?