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: v0.941
Choose a base ref
...
head repository: python/mypy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.942
Choose a head ref
  • 10 commits
  • 18 files changed
  • 4 contributors

Commits on Mar 21, 2022

  1. Bump version to 0.942+dev

    JukkaL committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    8e9ac15 View commit details
    Browse the repository at this point in the history
  2. Fix small conditional overload regression (#12336)

    Don't merge conditional FuncDef
    after an unconditional one.
    cdce8p authored and JukkaL committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    626147a View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. Allow non-final __match_args__ and overriding (#12415)

    Allow subclasses to override `__match_args__` freely, and don't require
    `__match_args__` to be final. 
    
    This matches runtime behavior. For example, if `B` subclasses `A`, 
    `case A(...)` also matches instances of `B`, using the `__match_args__` 
    from `A`.
    
    The issue was brough up by @AlexWaygood in 
    #12411 (comment).
    JukkaL committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    6606dbe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    837543e View commit details
    Browse the repository at this point in the history
  3. Support overriding dunder attributes in Enum subclass (#12138)

    Allows any dunder (`__name__`) attributes except `__members__` (due to it being 
    read-only) to be overridden in enum subclasses.
    
    Fixes #12132.
    Petter Friberg authored and JukkaL committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    7e09c2a View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. Fix inheritance false positives with dataclasses/attrs (#12411)

    Multiple inheritance from dataclasses and attrs classes works at runtime,
    so don't complain about `__match_args__` or `__attrs_attrs__` which tend
    to have incompatible types in subclasses.
    
    Fixes #12349. Fixes #12008. Fixes #12065.
    JukkaL committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    f81b228 View commit details
    Browse the repository at this point in the history
  2. Make order of processing the builtins SCC predictable (#12431)

    Various things can go wrong if the order of modules in the builtins
    SCC that also includes typing, _typeshed and others is adjusted.
    
    Hopefully fixes #12422. May also fix #12421.
    JukkaL committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    367b29d View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2022

  1. Pin the version of bugbear (#12436)

    jhance authored and JukkaL committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    67088e5 View commit details
    Browse the repository at this point in the history
  2. Let overload item have a wider return type than implementation (#12435)

    A wider return type can be useful if a decorator used for the overload
    implementation gets a more precise return type as part of a typeshed
    update.
    
    Closes #12434.
    JukkaL committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    1c83668 View commit details
    Browse the repository at this point in the history
  3. Update version to 0.942

    JukkaL committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    38f1e30 View commit details
    Browse the repository at this point in the history
Loading