Open Terseus opened 1 year ago
Maybe we should introduce it as far as we go, meaning, for each new PR we should try to add type hint
Using mypy's stubgen tool might help speed-up the process and automate some of the work.
I have make a PR for this (https://github.com/python/typeshed/pull/12683)
Right now, when using this library in any project which uses mypy, it gives the following error:
That's because the library doesn't have type hints, nor have type stubs in the typeshed repository.
Type hints are super helpful, not only can help to prevent bugs when combined with a static code analyzer like mypy, but also serves as documentation for any new user of the library, which makes it far easier to understand what can be and cannot be done with every method and property.
Please, consider adding type hints to the library.