Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump mypy from 1.10.1 to 1.11.1 #8561

Merged
merged 7 commits into from
Aug 6, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 31, 2024

Bumps mypy from 1.10.1 to 1.11.1.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next release

Mypy 1.11

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:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Support Python 3.12 Syntax for Generics (PEP 695)

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 --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.

This example demonstrates the new syntax:

# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...
reveal_type(f(1))  # Revealed type is 'int'
Generic class
class C[T]:
def init(self, x: T) -> None:
self.x = x
c = C('a')
reveal_type(c.x)  # Revealed type is 'str'
Type alias
type A[T] = C[list[T]]

This feature was contributed by Jukka Lehtosalo.

Support for 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)

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mypy](https://github.com/python/mypy) from 1.10.1 to 1.11.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.10.1...v1.11.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested review from webknjaz and asvetlov as code owners July 31, 2024 10:54
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 31, 2024
@github-actions github-actions bot enabled auto-merge (squash) July 31, 2024 11:05
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.59%. Comparing base (bf5a66f) to head (b552294).
Report is 215 commits behind head on 3.10.

Files with missing lines Patch % Lines
aiohttp/typedefs.py 50.00% 0 Missing and 1 partial ⚠️
aiohttp/web_urldispatcher.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             3.10    #8561      +/-   ##
==========================================
+ Coverage   97.57%   97.59%   +0.01%     
==========================================
  Files         108      108              
  Lines       33634    33675      +41     
  Branches     4034     4039       +5     
==========================================
+ Hits        32819    32865      +46     
+ Misses        594      590       -4     
+ Partials      221      220       -1     
Flag Coverage Δ
CI-GHA 97.49% <33.33%> (+0.01%) ⬆️
OS-Linux 97.17% <33.33%> (+0.01%) ⬆️
OS-Windows 94.70% <33.33%> (+<0.01%) ⬆️
OS-macOS 96.83% <33.33%> (+0.01%) ⬆️
Py-3.10.11 96.93% <33.33%> (+0.01%) ⬆️
Py-3.10.14 96.89% <33.33%> (+0.01%) ⬆️
Py-3.11.9 97.13% <33.33%> (+0.01%) ⬆️
Py-3.12.4 97.24% <33.33%> (+0.01%) ⬆️
Py-3.8.10 94.43% <33.33%> (+<0.01%) ⬆️
Py-3.8.18 96.79% <33.33%> (+0.01%) ⬆️
Py-3.9.13 96.94% <33.33%> (+0.01%) ⬆️
Py-3.9.19 96.90% <33.33%> (+0.01%) ⬆️
Py-pypy7.3.16 96.46% <33.33%> (+0.01%) ⬆️
VM-macos 96.83% <33.33%> (+0.01%) ⬆️
VM-ubuntu 97.17% <33.33%> (+0.01%) ⬆️
VM-windows 94.70% <33.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot merged commit 06eedff into 3.10 Aug 6, 2024
30 of 32 checks passed
@github-actions github-actions bot deleted the dependabot/pip/3.10/mypy-1.11.1 branch August 6, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant