From 7b1948c18c78350451317ad0a82a8dad46c97c92 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 5 Aug 2024 12:18:38 -0700
Subject: [PATCH] misc: bump mypy from 1.10.1 to 1.11.1 (#1407)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [mypy](https://github.com/python/mypy) from 1.10.1 to 1.11.1.
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.partialMypy 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)
570b90a
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)6cf9180
Fix types.GenericAlias lookup crash (#17543)64c1ebf
Bump version to 1.11.1+devdbd5f5c
Remove +dev from version for 1.11 releasef0a8c69
Update CHANGELOG for mypy 1.11 (#17540)371f780
CHANGELOG.md update for 1.11 (#17539)2563da0
Fix daemon crash on invalid type in TypedDict (#17495)