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.9.0 to 1.11.2 #1273

Merged
merged 5 commits into from
Oct 27, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 26, 2024

Bumps mypy from 1.9.0 to 1.11.2.

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
  • 789f02c Bump version to 1.11.2
  • 917cc75 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+dev
  • 570b90a Bump version to 1.11
  • b3a102e 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)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the Task label Aug 26, 2024
@github-actions github-actions bot enabled auto-merge (squash) August 26, 2024 03:33
@dependabot dependabot bot force-pushed the dependabot/pip/mypy-1.11.2 branch from 592dce7 to 4dd774d Compare August 26, 2024 03:40
Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.04%. Comparing base (700df87) to head (77f77ff).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1273   +/-   ##
=======================================
  Coverage   69.04%   69.04%           
=======================================
  Files         181      181           
  Lines        8865     8865           
  Branches      659      659           
=======================================
  Hits         6121     6121           
  Misses       2648     2648           
  Partials       96       96           

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

@dependabot dependabot bot force-pushed the dependabot/pip/mypy-1.11.2 branch from 4dd774d to 9684d50 Compare August 26, 2024 03:48
@dependabot dependabot bot force-pushed the dependabot/pip/mypy-1.11.2 branch from 9684d50 to b7ef2ad Compare August 26, 2024 03:56
@dependabot dependabot bot force-pushed the dependabot/pip/mypy-1.11.2 branch from b7ef2ad to 1adcb3b Compare August 26, 2024 04:04
@dependabot dependabot bot force-pushed the dependabot/pip/mypy-1.11.2 branch from 1adcb3b to 41beb04 Compare August 26, 2024 04:13
Bumps [mypy](https://github.com/python/mypy) from 1.9.0 to 1.11.2.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@1.9.0...v1.11.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@wsanchez
Copy link
Member

wsanchez commented Oct 1, 2024

Blocked on mypy-zope update

Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 21, 2024

A newer version of mypy exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@github-actions github-actions bot merged commit dc71150 into master Oct 27, 2024
12 checks passed
@github-actions github-actions bot deleted the dependabot/pip/mypy-1.11.2 branch October 27, 2024 23:35
wsanchez added a commit that referenced this pull request Oct 29, 2024
* master: (266 commits)
  Use uv (#1337)
  fix(tox.ini): pass pre-commit SKIPs into pre-commit call
  fix(.github): skip no-commit-to-branch on cicd workflow
  fix: actually set the error text on each page
  fix: try again to show error message on incidents page
  fix: don't throw DataTables errors
  feat: display errors on pages rather than with browser alerts
  [pre-commit.ci] pre-commit autoupdate (#1336)
  build(deps): bump zope-interface from 7.1.0 to 7.1.1 (#1333)
  build(deps): bump werkzeug from 3.0.4 to 3.0.6 (#1330)
  build(deps): bump mypy-zope from 1.0.7 to 1.0.8 (#1334)
  build(deps): bump hypothesis from 6.115.3 to 6.115.5 (#1332)
  build(deps): bump twisted from 24.7.0 to 24.10.0 (#1331)
  build(deps): bump service-identity from 24.1.0 to 24.2.0 (#1329)
  Bump mypy from 1.9.0 to 1.11.2 (#1273)
  Update CHANGELOG.md
  feat: allow more than 6 tabs per browser session
  Update CHANGELOG.md
  feat: add groupings to "add incident report" dropdown
  docs: update CHANGELOG.md
  ...

# Conflicts:
#	MANIFEST.in
#	requirements/requirements-direct.txt
#	setup.py
#	src/ims/application/_auth.py
#	src/ims/application/_external.py
#	src/ims/application/_klein.py
#	src/ims/application/_main.py
#	src/ims/application/_web.py
#	src/ims/element/_element.py
#	src/ims/element/incident/incident_template/template.xhtml
#	src/ims/element/incident/incidents_template/template.xhtml
#	src/ims/element/incident/report_template/template.xhtml
#	src/ims/element/incident/reports_template/template.xhtml
#	src/ims/element/login/template.xhtml
#	src/ims/element/page/_page.py
#	src/ims/element/static/ims.js
#	src/ims/element/static/incident.js
#	src/ims/element/static/incident_report.js
#	src/ims/element/static/incident_reports.js
#	src/ims/element/static/incidents.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant