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

Commits on Mar 31, 2026

  1. sdist: include misc/{diff-cache,apply-cache-diff}.py for `mypy/test…

    …/test_diff_cache.py` (#21096)
    
    In Debian, we build the `mypy` Debian package from the Python package
    source dists published to https://pypi.org/project/mypy/ ; so to support
    running the `mypy/test/test_diff_cache.py` tests, include
    `misc/{diff-cache,apply-cache-diff}.py` in the `MANIFEST.in`
    mr-c authored and JukkaL committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    c916ca3 View commit details
    Browse the repository at this point in the history
  2. --allow-redefinition-new is no longer experimental (#21110)

    @ilevkivskyi made a bunch of improvements to the feature.
    JukkaL committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    c482596 View commit details
    Browse the repository at this point in the history
  3. [mypyc] Document librt and librt.base64 (#21114)

    This also contains a few small unrelated changes to mypyc docs.
    JukkaL committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    7bec7b7 View commit details
    Browse the repository at this point in the history
  4. Use 'native-parser' instead of 'native-parse' for optional dependency (

    …#21115)
    
    This makes it consistent with the `--native-parser` flag. Now `pip
    install mypy[native-parser]` will install native parser support.
    JukkaL committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    b4f07a7 View commit details
    Browse the repository at this point in the history
  5. Changelog updates for 1.20 (#21109)

    Add sections for major features and list items for small user-visible
    changes.
    
    Document expected major changes in the mypy 2.0 release.
    
    Related issue: #20726
    JukkaL committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    4738ffa View commit details
    Browse the repository at this point in the history
  6. Remove +dev from version

    JukkaL committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    770d3ca View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2026

  1. Configuration menu
    Copy the full SHA
    fa1975b View commit details
    Browse the repository at this point in the history
  2. --warn-unused-config should not be a strict flag (#21139)

    Fixes #21137
    
    This flag has nothing to with type checking strictness, it is a
    convenience option for config maintenance.
    ilevkivskyi authored and hauntsaninja committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    808d0e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2996c37 View commit details
    Browse the repository at this point in the history
  4. Avoid narrowing to unreachable at module level (#21144)

    Helps with confusing symptoms in #21132
    
    It is unfortunate that it makes the logic a little more ad hoc / might
    lead to minimal repros being a little more confusing. But I think this
    is still a better and more helpful state to be in than before
    #20660 (relevant PR from the
    narrowing rewrite).
    
    Hopefully we can add the ability to check unreachable code, which will
    fix this and other issues.
    hauntsaninja committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    eafcf18 View commit details
    Browse the repository at this point in the history
  5. Fix narrowing with chained comparison (#21150)

    Fixes #21149 (the regression part of it, still working on the bad
    behaviour present in previous mypy versions)
    hauntsaninja committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    de50419 View commit details
    Browse the repository at this point in the history
  6. Fix reachability for frozenset and dict view narrowing (#21151)

    Fixes #21143 (on the same lines as #20704, i.e. there still exists a
    deeper fix that could be made)
    
    I also update a comment that is a little out of date since #20863 and
    code in checkexpr.py that is out of date for modern typeshed
    hauntsaninja committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    6fccffc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a4876e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2026

  1. Avoid narrowing type[T] in type calls (#21174)

    Similar to #20662
    
    Fixes #21173
    hauntsaninja committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    521f88f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2e8ee1 View commit details
    Browse the repository at this point in the history
  3. Revert dict.__or__ typeshed change (#21186)

    Fixes #21141
    
    I am not sure how typeshed patches work. If possible, I would add some
    tests here, otherwise I will add tests in a follow-up PR.
    ilevkivskyi authored and hauntsaninja committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    f7fa418 View commit details
    Browse the repository at this point in the history
  4. Temporarily skip few base64 tests (#21193)

    This is to unbreak master. We can apply an actual fix later.
    
    Refs for context:
    * #21120
    *
    python/cpython@e31c551
    
    cc @JukkaL
    ilevkivskyi authored and hauntsaninja committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    e82a046 View commit details
    Browse the repository at this point in the history
  5. Always disable sync in SQLite cache (#21184)

    Fixes #21176
    
    This seems to resolve all the HDD performance issues. Although this
    makes cache less durable, this is fine, as FS is not perfect in this
    sense either (and it doesn't really need to be that durable).
    ilevkivskyi authored and hauntsaninja committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    842e492 View commit details
    Browse the repository at this point in the history
  6. Bump version to 1.20.1

    hauntsaninja committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    c60e8bf View commit details
    Browse the repository at this point in the history
Loading