gorilla-co / odata-query

An OData v4 query parser and transpiler for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fully type annotate the library

rominf opened this issue · comments

Right now, it's not possible to check the code which uses the library:

some_file:15: error: Skipping analyzing "odata_query": module is installed, but missing library stubs or py.typed marker
some_file:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
some_file: error: Skipping analyzing "odata_query.grammar": module is installed, but missing library stubs or py.typed marker
some_file: error: Skipping analyzing "odata_query.exceptions": module is installed, but missing library stubs or py.typed marker
some_file: error: Skipping analyzing "odata_query.typing": module is installed, but missing library stubs or py.typed marker
some_file: error: Skipping analyzing "odata_query.visitor": module is installed, but missing library stubs or py.typed marker

It would be great to get this ability.

PS: I've implemented my custom visitor, but I'm not sure if it's worth sharing; it's unique to our requirements.

Great idea! Definitely on my personal wishlist as well!

Happy to announce typing support in the new 0.5 release!
Feel free to report any missing or inaccurate type annotations you notice in the future.
Thanks for requesting this!