-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Comparing changes
Open a pull request
base repository: python/mypy
base: master
head repository: python/mypy
compare: release-1.19
- 18 commits
- 43 files changed
- 10 contributors
Commits on Nov 25, 2025
-
[mypyc] Fix crash on super in generator (#20291)
This is another problem caused by #19398 and a missing part of #20254 cc @JukkaL @hauntsaninja there is a small chance this may be related to the problems with black.
Configuration menu - View commit details
-
Copy full SHA for 13369cb - Browse repository at this point
Copy the full SHA 13369cbView commit details
Commits on Nov 28, 2025
-
[mypyc] Fix vtable pointer with inherited dunder new (#20302)
Fixes an issue where a subclass would have its vtable pointer set to the base class' vtable when there is a `__new__` method defined in the base class. This resulted in the subclass constructor calling the setup function of the base class because mypyc transforms `object.__new__` into the setup function. The fix is to store the pointers to the setup functions in `tp_methods` of type objects and look them up dynamically when instantiating new objects. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1b94fbb - Browse repository at this point
Copy the full SHA 1b94fbbView commit details -
[mypyc] librt base64: use existing SIMD CPU dispatch by customizing b…
…uild flags (#20253) Fixes the current SSE4.2 requirement added in 1b6ebb1 / #20244 This PR fully enables the existing x86-64 CPU detection and dispatch code for SSSE3, SSE4.1, SSE4.2, AVX, and AVX2 in the base64 module. To use the existing CPU dispatch from the [upstream base64 code](https://github.com/aklomp/base64), one needs to compile the sources in each of the CPU specific codec directories with a specific compiler flag; alas this is difficult to do with setuptools, but I found a solution inspired by https://stackoverflow.com/a/68508804 Note that I did not enable the AVX512 path with this PR, as many intel CPUs that support AVX512 can come with a performance hit if AVX512 is sporadically used; the performance of the AVX512 (encoding) path need to be evaluated in the context of how mypyc uses base64 in various realistic scenarios. (There is no AVX512 accelerated decoding path in the upstream base64 codebase, it falls back to the avx2 decoder). If there are additional performance concerns, then I suggest benchmarking with the openmp feature of base64 turned on, for multi-core processing.
Configuration menu - View commit details
-
Copy full SHA for 1999a20 - Browse repository at this point
Copy the full SHA 1999a20View commit details -
Add draft version of 1.19 release notes (#20296)
Added a draft version with the commits filtered to remove internal changes and grouped into sections. --------- Co-authored-by: Jacopo Abramo <jacopo.abramo@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3c81308 - Browse repository at this point
Copy the full SHA 3c81308View commit details -
Various updates to 1.19 changelog (#20304)
The first draft was added in #20296.
Configuration menu - View commit details
-
Copy full SHA for 6d5cf52 - Browse repository at this point
Copy the full SHA 6d5cf52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f068c9 - Browse repository at this point
Copy the full SHA 0f068c9View commit details
Commits on Dec 13, 2025
-
Configuration menu - View commit details
-
Copy full SHA for dbf97df - Browse repository at this point
Copy the full SHA dbf97dfView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for d503cf8 - Browse repository at this point
Copy the full SHA d503cf8View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for c93d917 - Browse repository at this point
Copy the full SHA c93d917View commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 3890fc4 - Browse repository at this point
Copy the full SHA 3890fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70eceea - Browse repository at this point
Copy the full SHA 70eceeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a6eff4 - Browse repository at this point
Copy the full SHA 8a6eff4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b31a2 - Browse repository at this point
Copy the full SHA a4b31a2View commit details -
Fail with an explicit error on PyPy (#20384)
Fixes mypyc/librt#21 Fail with an explicit user-friendly error on PyPy.
Configuration menu - View commit details
-
Copy full SHA for 58d485b - Browse repository at this point
Copy the full SHA 58d485bView commit details -
Fail on PyPy in main instead of setup.py (#20389)
Follow-up for #20384
Configuration menu - View commit details
-
Copy full SHA for f60f90f - Browse repository at this point
Copy the full SHA f60f90fView commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for 2b23b50 - Browse repository at this point
Copy the full SHA 2b23b50View commit details
Commits on Dec 14, 2025
-
Update changelog for 1.19.1 (#20414)
Also change the header for 1.18 because of #19910
Configuration menu - View commit details
-
Copy full SHA for 20aea0a - Browse repository at this point
Copy the full SHA 20aea0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 412c19a - Browse repository at this point
Copy the full SHA 412c19aView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...release-1.19