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

[stubgen] Preserve PEP 604 Unions in generated pyi files #14601

Merged
merged 1 commit into from
Feb 7, 2023

Commits on Feb 3, 2023

  1. [stubgen] Preserve PEP 604 Unions in generated pyi files

    When a PEP 604 Union exists in the runtime, stubgen was generating a
    `Union[...]` syntax without importing `Union` from `typing`. With this
    change, stubgen preserves the ` | `-unions in the output.
    
    Fixes python#12929
    Closes python#13428
    Ref python#12920
    hamdanal committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    2b51a9b View commit details
    Browse the repository at this point in the history