-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Feature Request]: Add library stubs or py.typed marker #27906
Comments
I'm not too familiar with this, but it looks like other libraries with inline type annotations like Beam simply place an "empty" |
I just tested adding a file like that and it works. |
Can we re-open this issue? I installed version 2.52 I still have the error
I looked into the installed package and It should be added as a new file in I could find for info there: https://peps.python.org/pep-0561/#packaging-type-information |
What would you like to happen?
Support running
mypy
on my own Beam pipeline code by adding type stubs.Simply importing
apache_beam
fails withmypy
.Install and run
mypy
.Gives the following output:
They can be automatically generated with
stubgen
, it would be nice to make that part of the release process on each new version. Since Beam already has type hints, I don't think there is too much tweaking needed.I did try to generate them, but it failed trying to parse some complex type hint.
Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: