Skip to content

Fix collections.abc pretty type - #40923

Merged
Amar3tto merged 1 commit into
masterfrom
fix-managedio-docs
Oct 31, 2026
Merged

Amar3tto merged 1 commit into
masterfrom
fix-managedio-docs

Conversation

@Amar3tto

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

This PR updates pretty_type in sdks/python/gen_xlang_wrappers.py to handle generic aliases from collections.abc (such as collections.abc.Sequence and collections.abc.Mapping) in addition to typing. The change is clean, minimal, and restores the expected type formatting for external transform wrapper generation.

🔍 General Feedback

  • Consider adding test cases for collections.abc.Sequence and collections.abc.Mapping to AutoGenerationScriptIT.test_pretty_types in sdks/python/apache_beam/transforms/external_transform_provider_it_test.py to prevent future regressions.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@Amar3tto
Amar3tto merged commit dca8454 into master Oct 31, 2026
88 checks passed
Amar3tto added a commit that referenced this pull request Oct 31, 2026
Cherrypick #40923 Fix collections.abc pretty type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants