[Feature Request]: Add library stubs or py.typed marker #27906
Labels
done & done
Issue has been reviewed after it was closed for verification, followups, etc.
new feature
P2
python
Milestone
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: