Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python/mypy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0f068c9
Choose a base ref
...
head repository: python/mypy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 412c19a
Choose a head ref
  • 12 commits
  • 26 files changed
  • 5 contributors

Commits on Dec 13, 2025

  1. Configuration menu
    Copy the full SHA
    dbf97df View commit details
    Browse the repository at this point in the history
  2. Fix crash on typevar with forward ref used in other module (#20334)

    Fixes #20326
    
    Type variables with forward references in upper bound are known to be
    problematic. Existing mechanisms to work with them implicitly assumed
    that they are used in the same module where they are defined, which is
    not necessarily the case for "old-style" type variables that can be
    imported.
    
    Note that the simplification I made in `semanal_typeargs.py` would be
    probably sufficient to fix this, but that would be papering over the
    real issue, so I am making a bit more principled fix.
    ilevkivskyi authored and hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    d503cf8 View commit details
    Browse the repository at this point in the history
  3. Fix crash on star import of redefinition (#20333)

    Fixes #20327
    
    Fix is trivial, do not grab various internal/temporary symbols with star
    imports. This may create an invalid cross-reference (and is generally
    dangerous). Likely, this worked previously because we processed all
    fresh modules in queue, not just the dependencies of current SCC.
    ilevkivskyi authored and hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    c93d917 View commit details
    Browse the repository at this point in the history
  4. Fix crash involving Unpack-ed TypeVarTuple (#20323)

    Fixes #20093
    
    This fixes the crash, but not the false positive (the false positive
    existed prior to the regression that introduced the crash)
    hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    3890fc4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    70eceea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8a6eff4 View commit details
    Browse the repository at this point in the history
  7. Allow types.NoneType in match cases (#20383)

    Fixes #20367
    A5rocks authored and hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    a4b31a2 View commit details
    Browse the repository at this point in the history
  8. Fail with an explicit error on PyPy (#20384)

    Fixes mypyc/librt#21
    
    Fail with an explicit user-friendly error on PyPy.
    ilevkivskyi authored and hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    58d485b View commit details
    Browse the repository at this point in the history
  9. Fail on PyPy in main instead of setup.py (#20389)

    Follow-up for #20384
    ilevkivskyi authored and hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    f60f90f View commit details
    Browse the repository at this point in the history
  10. Serialize raw errors in cache metas (#20372)

    Fixes #20353
    
    This makes us respect e.g. `--output json` for cached files without
    re-checking the files (which is the desired behavior for users, see
    issue). This is also a first step towards resolving the "foo defined
    here" conundrum for parallel checking.
    
    The fix is straightforward. The only question was whether to continue
    using `ErrorTuple`s or switch to a proper class. I decided to keep the
    tuples for now to minimize the scope of change.
    
    Note I am also adjusting generic "JSON" fixed-format helpers to natively
    support tuples (unlike real JSON). We already use tuples in few other
    places, so it makes sense to just make it "official" (this format is
    still internal to mypy obviously).
    ilevkivskyi authored and hauntsaninja committed Dec 13, 2025
    Configuration menu
    Copy the full SHA
    2b23b50 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2025

  1. Update changelog for 1.19.1 (#20414)

    Also change the header for 1.18 because of
    #19910
    hauntsaninja committed Dec 14, 2025
    Configuration menu
    Copy the full SHA
    20aea0a View commit details
    Browse the repository at this point in the history
  2. Bump version to 1.19.1

    hauntsaninja committed Dec 14, 2025
    Configuration menu
    Copy the full SHA
    412c19a View commit details
    Browse the repository at this point in the history
Loading