Repository navigation
Add support for common collections.abc types - #25798
Conversation
|
R: @tvalentyn |
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
|
PTAL at test failures. |
|
Looks like the mechanic I was leveraging to check if the type was an iterable was new behavior in 3.11, not older versions. The new routing of checking for an |
Codecov Report
@@ Coverage Diff @@
## master #25798 +/- ##
==========================================
- Coverage 72.81% 72.71% -0.10%
==========================================
Files 775 777 +2
Lines 102928 103078 +150
==========================================
+ Hits 74946 74958 +12
- Misses 26527 26665 +138
Partials 1455 1455
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
TIL our python codecov is not running on 3.9 or 3.10. Interesting. |
|
Run Python_Integration PreCommit |
Yes, some tests only run on one of the Python versions, typically the lowest supported by Beam. |
|
Seeing some segfaults in Python 3.10... is this related to this PR? |
|
The MacOS 3.10 unit test run appears to be segfaulting at head, not this PR |
Adds support for the
collections.abcmodule'sIterable,Iterator, andGeneratorcontainers as type hints. Thetypingmodule equivalents had previously been supported but are deprecated as of Python 3.9, so support for the new recommended container types was necessary.Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.