async-timeout
async-timeout copied to clipboard
Bump mypy from 1.4.1 to 1.9.0
Bumps mypy from 1.4.1 to 1.9.0.
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Mypy 1.9
We’ve just uploaded mypy 1.9 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:
python3 -m pip install -U mypyYou can read the full documentation for this release on Read the Docs.
Breaking Changes
Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Jared Hance, PR 16883)
We are planning to enable local partial types (enabled via the
--local-partial-typesflag) later this year by default. This change was announced years ago, but now it's finally happening. This is a major backward-incompatible change, so we'll probably include it as part of the upcoming mypy 2.0 release. This makes daemon and non-daemon mypy runs have the same behavior by default.Local partial types can also be enabled in the mypy config file:
local_partial_types = TrueWe are looking at providing a tool to make it easier to migrate projects to use
--local-partial-types, but it's not yet clear whether this is practical. The migration usually involves adding some explicit type annotations to module-level and class-level variables.Basic Support for Type Parameter Defaults (PEP 696)
This release contains new experimental support for type parameter defaults (PEP 696). Please try it out! This feature was contributed by Marc Mueller.
Since this feature will be officially introduced in the next Python feature release (3.13), you will need to import
TypeVar,ParamSpecorTypeVarTuplefromtyping_extensionsto use defaults for now.This example adapted from the PEP defines a default for
BotT:from typing import Generic from typing_extensions import TypeVarclass Bot: ...
BotT = TypeVar("BotT", bound=Bot, default=Bot) </tr></table>
... (truncated)
Commits
5ff46f8Remove +dev.155909a[Release 1.9] Unsupport targetting 3.7. (#16883) (#16900)6615cab[Release 1.9] Stubtest: ignore a new protocol dunder (#16895) (#16899)b956e6astubtest: Private parameters can be omitted (#16507)ede0b20Bump ruff to 0.2.0 (#16870)7bdd61fstubgen: Fix crash on star unpack of TypeVarTuple (#16869)8c2ef9dUpdate hashes in sync-typeshed.py following recent typeshed sync0dd4b6fRevert use ofParamSpecforfunctools.wrapsdd12a2dRevert typeshed ctypes changed132999Revert sum literal integer change (#13961)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)