Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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: master
Choose a base ref
Loading
...
head repository: python/mypy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release-1.16
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 11 files changed
  • 4 contributors

Commits on May 8, 2025

  1. Consolidate descriptor handling in checkmember.py (#18831)

    This is not a pure refactoring, but almost. Right now we are in a weird
    situation where we have two inconsistencies:
    * `__set__()` is handled in `checker.py` while `__get__()` is handled in
    `checkmember.py`
    * rules for when to use binder are slightly different between
    descriptors and settable properties.
    
    This PR fixes these two things. As a nice bonus we should get free
    support for unions in `__set__()`.
    ilevkivskyi authored and jhance committed May 8, 2025
    Configuration menu
    Copy the full SHA
    3010efc View commit details
    Browse the repository at this point in the history
  2. Local forward refs should precede global forward refs (#19000)

    Fixes #18988
    
    This should be a minimal change to restore backwards compatibility for
    an edge case with forward references.
    ilevkivskyi authored and jhance committed May 8, 2025
    Configuration menu
    Copy the full SHA
    8e7c094 View commit details
    Browse the repository at this point in the history
  3. Do not narrow types to Never with binder (#18972)

    Fixes #18967
    Fixes #16494
    Fixes #15793
    Fixes #12949
    
    As you can see from updated test cases, it is kind of gray area, so
    whether we go this way will depend on the `mypy_primer` results (and
    also potentially on Dropbox internal code bases, where the above issue
    may cause problems).
    ilevkivskyi authored and jhance committed May 8, 2025
    Configuration menu
    Copy the full SHA
    ea8aacd View commit details
    Browse the repository at this point in the history

Commits on May 10, 2025

  1. fix

    jhance committed May 10, 2025
    Configuration menu
    Copy the full SHA
    0cd434f View commit details
    Browse the repository at this point in the history

Commits on May 12, 2025

  1. Fix crash on multiple unpacks in a bare type application (#18857)

    Fixes #18856. This should be done by `TypeAnalyzer.anal_array` but is
    not - semanal only invokes its own wrapper around `anal_type`
    
    ---------
    
    Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
    2 people authored and jhance committed May 12, 2025
    Configuration menu
    Copy the full SHA
    8ed26e5 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2025

  1. Configuration menu
    Copy the full SHA
    96525a2 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2025

  1. Document --allow-redefinition-new (#19153)

    The feature was introduced in #18727.
    JukkaL committed May 27, 2025
    Configuration menu
    Copy the full SHA
    a499d9f View commit details
    Browse the repository at this point in the history
  2. [mypyc] Improve documentation of native and non-native classes (#19154)

    Also discuss `mypyc_attr(native_class=<...>)`.
    JukkaL committed May 27, 2025
    Configuration menu
    Copy the full SHA
    334469f View commit details
    Browse the repository at this point in the history

Commits on May 29, 2025

  1. Allow enum members to have type objects as values (#19160)

    Type objects as enum values are supported at runtime.
    
    Fixes #19151.
    JukkaL committed May 29, 2025
    Configuration menu
    Copy the full SHA
    b6da4fc View commit details
    Browse the repository at this point in the history
  2. Revert "Infer correct types with overloads of Type[Guard | Is] (#19161

    )
    
    This reverts commit 43ea203 (#17678).
    
    The commit caused a regression (#19139). If we can't fix the regression
    soon enough, reverting the original change temporarily will at least
    unblock the mypy public release. The reverted PR can be merged again
    once the regression is fixed.
    JukkaL committed May 29, 2025
    Configuration menu
    Copy the full SHA
    2a036e7 View commit details
    Browse the repository at this point in the history
  3. Add changelog for 1.16 (#19138)

    Related to #18739.
    JukkaL committed May 29, 2025
    Configuration menu
    Copy the full SHA
    8fe719f View commit details
    Browse the repository at this point in the history
  4. Update version to 1.16.0

    JukkaL committed May 29, 2025
    Configuration menu
    Copy the full SHA
    9e72e96 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.