Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type hints #189

Open
and-semakin opened this issue Nov 4, 2019 · 0 comments
Open

Add type hints #189

and-semakin opened this issue Nov 4, 2019 · 0 comments

Comments

@and-semakin
Copy link

and-semakin commented Nov 4, 2019

Optional type hints allow static type checker (for example mypy, pyre, pyright, many IDEs) to check validity of code and allow Python programmers to write less buggy code. jmespath is one of the most popular libraries according to PyPI stats. I believe that adding type hints/annotations here will evolve entire Python ecosystem.

It can be added natively since Python 3.5 but also can be added in external stubs (*.pyi files) or commentaries (# type: int). Both methods will work with Python 2.7 and Python 3.4.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant