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

Type hints #183

Open
ezorita opened this issue Sep 30, 2021 · 2 comments
Open

Type hints #183

ezorita opened this issue Sep 30, 2021 · 2 comments

Comments

@ezorita
Copy link

ezorita commented Sep 30, 2021

Is there any plan to include type hints to parsimonious classes?

@bitoffdev
Copy link

+1 on this

In the meantime, I have found that mypy's stubgen produces type stubs that are good enough for my use case (and hopefully others reading this).

Assuming you have installed mypy, you should be able to run it like so:

stubgen -p parsimonious

and it will produce a directory full of *.pyi files.

@jpy-git
Copy link

jpy-git commented Mar 13, 2022

FYI I've added stubs for parsimonious to typeshed in python/typeshed#7477
You can install them via pip install types-parsimonious and then you can take advantage of type checking & improved autocomplete 😄

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

3 participants