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] Compile away NewType type calls #14398

Merged

Commits on Jan 5, 2023

  1. [mypyc] Compile away NewType type calls

    For example, here the call to ID is simply a no-op at runtime,
    returning 1 unchanged.
    
        ID = NewType('ID', int)
        person = ID(1)
    ichard26 committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    ee1c4d0 View commit details
    Browse the repository at this point in the history
  2. Fix grammar issue in mypyc/irbuild/expression.py

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    ichard26 and JelleZijlstra committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    eec1f4d View commit details
    Browse the repository at this point in the history