tink-crypto/tink-py

Distribute type information as PEP 561 describes

Opened this issue · 3 comments

Help us help you

I'm using tink-py in one of my projects with, what it can be called, a modern development environment that includes Python type annotations and mypy, as the static type checker. As I can see, tink code has type annotations but it doesn't distribute them so mypy could use them (as PEP 561 describes).

What sort of feature would you like to see?

Tink should distribute type information as PEP 561 or as mypy suggests in the following link:

https://mypy.readthedocs.io/en/stable/installed_packages.html

Have you considered any alternative solutions?

I configure mypy to ignore missing import errors from tink module.

Thank you so much.

Regards.

juergw commented

Thanks for this suggestion. I agree that we should do this.

juergw commented

In our tests, we are using pytype and not mypy. pytype is less strict. I tried to use mypy, and I got some errors that first would need to be resolved. We first need resolve these errors before we can add this annotation.

juergw commented

I don't have time to work on this at the moment.