-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docopt.pyi is missing all classes from docopt.py #9833
Comments
The docopt module seems to be missing quite a few items. Any PRs to improve the situation are welcome! |
The reason why our tests haven't flagged these classes as being missing from the stub is that docopt has a very minimal |
@AlexWaygood thanks for the explanation. In our case mypy is complaining in a unittest which accesses the |
Thanks @hauntsaninja. I followed up and filed a report with the docopt project. I personally believe that exceptions that are raised to the caller code should be made public so they can be captured and handled properly so as not to force others to catch |
When installing types-docopt (any version but also up to the latest 0.6.11.2) we get mypy errors when we reference any of the classes in docopt.py such as:
In that case we were referencing
docopt.DocoptExit
.The text was updated successfully, but these errors were encountered: