| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
You'll need to add the patch to misc/typeshed_patches. Afterwards, it will be picked up for any subsequent typeshed sync. git format-patch -1 -o misc/typeshed_patches/ HEAD
I believe the pythoneval.test tests are run using the full stubs, so you should be able to a regression test there. You can do that in this PR as well, no need to create a separate one for it. |
Sorry, something went wrong.
|
Diff from mypy_primer, showing the effect of this PR on open source code: artigraph (https://github.com/artigraph/artigraph)
- tests/arti/internal/test_mappings.py:40: error: Unsupported operand types for | ("dict[str, int]" and "frozendict[Never, int]") [operator]
+ tests/arti/internal/test_mappings.py:40: error: No overload variant of "__or__" of "dict" matches argument type "frozendict[Never, int]" [operator]
+ tests/arti/internal/test_mappings.py:40: note: Possible overload variants:
+ tests/arti/internal/test_mappings.py:40: note: def __or__(self, dict[str, int], /) -> dict[str, int]
+ tests/arti/internal/test_mappings.py:40: note: def [_T1, _T2] __or__(self, dict[_T1, _T2], /) -> dict[str | _T1, int | _T2]
rotki (https://github.com/rotki/rotki)
- rotkehlchen/chain/evm/decoding/aave/v3/decoder.py:583: error: Unused "type: ignore" comment [unused-ignore]
|
Sorry, something went wrong.
Fixes python#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.
##### [\`v1.20.1\`](https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1201) - Always disable sync in SQLite cache (Ivan Levkivskyi, PR [21184](python/mypy#21184)) - Temporarily skip few base64 tests (Ivan Levkivskyi, PR [21193](python/mypy#21193)) - Revert `dict.__or__` typeshed change (Ivan Levkivskyi, PR [21186](python/mypy#21186)) - Fix narrowing for match case with variadic tuples (Shantanu, PR [21192](python/mypy#21192)) - Avoid narrowing `type[T]` in type calls (Shantanu, PR [21174](python/mypy#21174)) - Fix regression for catching empty tuple in except (Shantanu, PR [21153](python/mypy#21153)) - Fix reachability for frozenset and dict view narrowing (Shantanu, PR [21151](python/mypy#21151)) - Fix narrowing with chained comparison (Shantanu, PR [21150](python/mypy#21150)) - Avoid narrowing to unreachable at module level (Shantanu, PR [21144](python/mypy#21144)) - Allow dangerous identity comparisons to `Any` typed variables (Shantanu, PR [21142](python/mypy#21142)) - `--warn-unused-config` should not be a strict flag (Ivan Levkivskyi, PR [21139](python/mypy#21139)) ##### [\`v1.20.0\`](python/mypy@v1.19.1...v1.20.0) Renovate-Branch: renovate/r2026-mypy-1.x Change-Id: I88dbcfe5e6938c1401f9ffdda71a9a5e9703324a Priv-Id: ac1477044856e83cc49e7b2b61d5068c572e0b50
| Back | FazBrowse Home | New Git URL |
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.