Skip to content

Conversation

copybara-service[bot]
Copy link

Print union types with the pipe syntax

E.g. Foo | Bar rather than Union[Foo, Bar]
and Foo | None rather than Optional[None]

This affect error messages, reveal_type, production of pyi files.

E.g. `Foo | Bar` rather than `Union[Foo, Bar]`
and `Foo | None` rather than `Optional[None]`

This affect error messages, `reveal_type`, production of pyi files.

PiperOrigin-RevId: 681316241
@h-joo h-joo closed this Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants