From b3ef40de70a5a1e05c218a9ff650f74144df4bac Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 9 Sep 2024 09:32:05 +1200
Subject: [PATCH] build(deps-dev): bump mypy from 1.6.1 to 1.11.2 (#1051)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[//]: # (dependabot-start)
⚠️ **Dependabot is rebasing this PR** ⚠️
Rebasing might not happen immediately, so don't worry if this takes some
time.
Note: if you make any changes to this PR yourself, they will take
precedence over the rebase.
---
[//]: # (dependabot-end)
Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.11.2.
Sourced from mypy's
changelog. We’ve just uploaded mypy 1.11 to the Python Package Index (PyPI). Mypy is a static type
checker for Python. This release includes new features, performance
improvements and bug fixes. You can install it as follows: You can read the full documentation for this release on Read the Docs. Mypy now supports the new type parameter syntax introduced in Python
3.12 (PEP 695).
This feature is still experimental and must be enabled with the
This example demonstrates the new syntax: reveal_type(f(1)) # Revealed type is 'int' class C[T]:
def init(self, x: T) -> None:
self.x = x c = C('a')
reveal_type(c.x) # Revealed type is 'str' type A[T] = C[list[T]]
Changelog
Mypy Release Notes
Next release
Mypy 1.11
python3 -m pip install -U mypy
Support Python 3.12 Syntax for Generics (PEP 695)
--enable-incomplete-feature=NewGenericSyntax
flag, or with
enable_incomplete_feature = NewGenericSyntax
in the mypy
configuration file.
We plan to enable this by default in the next mypy feature release.# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...
Generic class
Type alias
This feature was contributed by Jukka Lehtosalo.
functools.partial
Mypy now type checks uses of functools.partial
.
Previously mypy would accept arbitrary arguments.
This example will now produce an error:
from functools import partial
</tr></table>
... (truncated)
789f02c
Bump version to 1.11.2917cc75
An alternative fix for a union-like literal string (#17639)7d805b3
Unwrap TypedDict item types before storing (#17640)32675dd
Revert "Fix Literal strings containing pipe characters" (#17638)778542b
Revert "Fix RawExpressionType.accept
crash with
--cache-fine-grained
" (#1...14ab742
Bump version to 1.11.2+dev570b90a
Bump version to 1.11b3a102e
Fix RawExpressionType.accept
crash with
--cache-fine-grained
(#17588)aec04c7
Fix PEP 604 isinstance caching (#17563)cb44e4d
Fix typing.TypeAliasType
being undefined on python <
3.12 (#17558)