From 56f8bf273e2c1990a48bfc6010dcf12b65bb36d1 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 16 Oct 2024 12:34:46 +0200
Subject: [PATCH] Bump mypy from 1.11.2 to 1.12.0 in the dependencies group
(#167)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps the dependencies group with 1 update:
[mypy](https://github.com/python/mypy).
Updates `mypy` from 1.11.2 to 1.12.0
Sourced from mypy's
changelog. We’ve just uploaded mypy 1.12 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. Support for the new type parameter syntax introduced in Python 3.12
is now enabled by default,
documented, and no longer experimental. It was available through a
feature flag in
mypy 1.11 as an experimental feature. 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.12
python3 -m pip install -U mypy
Support Python 3.12 Syntax for Generics (PEP 695)
# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...
Generic class
Type alias
For more information, refer to the documentation.
These improvements are included:
... (truncated)
f2a39b1
Update version to 1.12.0b4ec37a
Add one more 1.12 changelog item (#17936)cc1c679
Better handling of generic functions in partial plugin (#17925)d65a013
Add latest 1.12 changes to changelog (#17921)2e38965
Fix union callees with functools.partial (#17903)c5d3673
Document ReadOnly (PEP 705) (#17905)964a7a5
Make ReadOnly TypedDict items covariant (#17904)24bfb34
Include CHANGELOG.md in sdists (#17882)21d46ed
documentation for TypeIs (#17821)c692943
Improvements to functools.partial of types (#17898)