-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
adding type annotation #128
Comments
No, adding type annotations is not currently in the roadmap. Thanks for the pointer to |
To be sure there is no confusion: It seems to me that we cannot really oppose the code in here https://github.com/python/cpython/blob/main/Lib/multiprocessing with the code in here https://github.com/python/typeshed/tree/main/stdlib/multiprocessing. It seems that the first one contains the library implementation and does not have any type annotation while the second contains only the annotations and no implementation. |
👍 there's no confusion |
Second vote for type hints. Type hints and |
Following up on this issue: Third vote for type hints. |
As a workaround, you can cast
or
|
I created a stubs package so it works for me: https://github.com/zhou13/multiprocess-stubs. |
Thank you for the library.
Unfortunately, having this library not typed prevents mypy from propagating types to do efficient static checks.
Is adding type annotation in the roadmap?
Maybe the stubs in here https://github.com/python/typeshed/tree/main/stdlib/multiprocessing could be reused?
The text was updated successfully, but these errors were encountered: