kayak / pypika

PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.
http://pypika.readthedocs.io/en/latest/
Apache License 2.0
2.48k stars 294 forks source link

Add a py.typed marker #609

Open alec-heif opened 3 years ago

alec-heif commented 3 years ago

Pypika has some partial typings but no py.typed marker, so mypy is not able to recognize the type hints in the subpackages which have them since pypika is not PEP-561 compliant.

It would be ideal if this project could become PEP-561 compliant, either by adding a py.typed marker or by adding typings to remaining functions and classes.

See https://mypy.readthedocs.io/en/latest/installed_packages.html#creating-pep-561-compatible-packages for more details.

pierresouchay commented 2 years ago

Yes please!

whardier commented 2 years ago

Ditto. It would be good to add the py.typed marker in.

reuben-ki commented 2 years ago

666 may have been lost in the wash - maybe could use a review :)

trim21 commented 3 weeks ago

I just extract typing from pypika and upload package pypika-stubs for mypy.

https://github.com/trim21/pypika-stubs