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

[mypyc] Simplify union types #14363

Merged
merged 2 commits into from
Dec 28, 2022
Merged

[mypyc] Simplify union types #14363

merged 2 commits into from
Dec 28, 2022

Commits on Dec 28, 2022

  1. [mypyc] Simplify union types

    We can sometimes simplify an RType union, even if the mypy union
    couldn't be simplified. A typical example is `list[x] | list[y]`
    which can be simplified to just `list`. Previously this would
    generate a redundant union `union[list, list]`.
    JukkaL committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    996be81 View commit details
    Browse the repository at this point in the history
  2. Add comment

    JukkaL committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    c3be6d2 View commit details
    Browse the repository at this point in the history