jmespath / jmespath/jmespath.py

Add type hints

Open
#189 0 comments 12 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

Optional type hints allow static type checker (for example [mypy](http://mypy-lang.org/), [pyre](https://pyre-check.org/), [pyright](https://github.com/microsoft/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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.