Package: python3-colored
Version: 2.2.3-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: ni...@thykier.net
Hi
When depending on `python3-colored` and using `mypy`, `mypy` will
complain about `python3-colored` is not typed. Upstream does seem to
have some typing, but has not marked the their library has typed in a
PEP-0561 complaint way.
As I understand the PEP, all that is needed is that
`/usr/lib/python3/dist-packages/colored/py.typed` exists as an empty
file in this case (a simple `touch` in `debian/rules` would be
sufficient as a work around for now). I have tried that locally and that
seems to solve my `mypy` error.
This is really an upstream bug. I have not reported this to upstream as
they are on `gitlab.com`, since I do not have an account there. For
upstream, there is guidance in PEP-0561
(https://peps.python.org/pep-0561/). But basically it is creating the
empty file and ensuring it is included in the dist (usually via
`setup(..., package_data=...)` or similar).
Best regards,
Niels