Skip to content
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

Add support for PEP 604 (Union |) in stub files #924

Closed
wants to merge 1 commit into from

Conversation

JelleZijlstra
Copy link
Contributor

Part of #785, though not a complete fix because this doesn't allow the | syntax at runtime (I think).

I was pleasantly surprised by how easy this change was. I hope that doesn't mean I missed something.

@rchen152
Copy link
Contributor

Wow! That really is a shockingly easy change.

@martindemello Could you review this PR, since you wrote pyi/parser.py and are the most familiar with it?

@martindemello
Copy link
Contributor

looks great, thanks for the fix!

@rchen152
Copy link
Contributor

Great, I'll go ahead and import this PR. Thanks, Martin!

rchen152 pushed a commit that referenced this pull request May 17, 2021
Part of #785, though not a complete fix because this doesn't allow the `|` syntax at runtime (I think).

Resolves #924

PiperOrigin-RevId: 374269437
rchen152 added a commit that referenced this pull request May 17, 2021
Add support for PEP 604 (Union |) in stub files (#924)
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.

3 participants