Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(deps): update dependency mypy to v1.18.2#208

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
renovate wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
fromrenovate/mypy-1.x-lockfile

Conversation

@renovate
Copy link

@renovaterenovatebot commentedApr 24, 2024
edited
Loading

This PR contains the following updates:

PackageChangeAgeConfidence
mypy (changelog)1.17.1 ->1.18.2ageconfidence

Release Notes

python/mypy (mypy)

v1.18.2

Compare Source

  • Fix crash on recursive alias (Ivan Levkivskyi, PR19845)
  • Add additional guidance for stubtest errors when runtime isobject.__init__ (Stephen Morton, PR19733)
  • Fix handling of None values in f-string expressions in mypyc (BobTheBuidler, PR19846)

v1.18.1

Compare Source

We’ve just uploaded mypy 1.18.1 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 onRead the Docs.

Mypy Performance Improvements

Mypy 1.18.1 includes numerous performance improvements, resulting in about 40% speedup
compared to 1.17 when type checking mypy itself. In extreme cases, the improvement
can be 10x or higher. The list below is an overview of the various mypy optimizations.
Many mypyc improvements (discussed in a separate section below) also improve performance.

Type caching optimizations have a small risk of causing regressions. When
reporting issues with unexpected inferred types, please also check if
--disable-expression-cache will work around the issue, as it turns off some of
these optimizations.

  • Improve self check performance by 1.8% (Jukka Lehtosalo, PR19768,19769,19770)
  • Optimize fixed-format deserialization (Ivan Levkivskyi, PR19765)
  • Use macros to optimize fixed-format deserialization (Ivan Levkivskyi, PR19757)
  • Two additional micro‑optimizations (Ivan Levkivskyi, PR19627)
  • Another set of micro‑optimizations (Ivan Levkivskyi, PR19633)
  • Cache common types (Ivan Levkivskyi, PR19621)
  • Skip more method bodies in third‑party libraries for speed (Ivan Levkivskyi, PR19586)
  • Simplify the representation of callable types (Ivan Levkivskyi, PR19580)
  • Add cache for types of some expressions (Ivan Levkivskyi, PR19505)
  • Use cache for dictionary expressions (Ivan Levkivskyi, PR19536)
  • Use cache for binary operations (Ivan Levkivskyi, PR19523)
  • Cache types of type objects (Ivan Levkivskyi, PR19514)
  • Avoid duplicate work when checking boolean operations (Ivan Levkivskyi, PR19515)
  • Optimize generic inference passes (Ivan Levkivskyi, PR19501)
  • Speed up the default plugin (Jukka Lehtosalo, PRs19385 and19462)
  • Remove nested imports from the default plugin (Ivan Levkivskyi, PR19388)
  • Micro‑optimize type expansion (Jukka Lehtosalo, PR19461)
  • Micro‑optimize type indirection (Jukka Lehtosalo, PR19460)
  • Micro‑optimize the plugin framework (Jukka Lehtosalo, PR19464)
  • Avoid temporary set creation in subtype checking (Jukka Lehtosalo, PR19463)
  • Subtype checking micro‑optimization (Jukka Lehtosalo, PR19384)
  • Return early where possible in subtype check (Stanislav Terliakov, PR19400)
  • Deduplicate some types before joining (Stanislav Terliakov, PR19409)
  • Speed up type checking by caching argument inference context (Jukka Lehtosalo, PR19323)
  • Optimize binding method self argument type and deprecation checks (Ivan Levkivskyi, PR19556)
  • Keep trivial instance types/aliases during expansion (Ivan Levkivskyi, PR19543)
Fixed‑Format Cache (Experimental)

Mypy now supports a new cache format used for faster incremental builds. It makes
incremental builds up to twice as fast. The feature is experimental and
currently only supported when using a compiled version of mypy. Use--fixed-format-cache
to enable the new format, orfixed_format_cache = True in a configuration file.

We plan to enable this by default in a future mypy release, and we'll eventually
deprecate and remove support for the original JSON-based format.

Unlike the JSON-based cache format, the new binary format is currently
not easy to parse and inspect by mypy users. We are planning to provide a tool to
convert fixed-format cache files to JSON, but details of the output JSON may be
different from the current JSON format. If you rely on being able to inspect
mypy cache files, we recommend creating a GitHub issue and explaining your use
case, so that we can more likely provide support for it. (Using
MypyFile.read(binary_data) to inspect cache data may be sufficient to support
some use cases.)

This feature was contributed by Ivan Levkivskyi (PR19668,19735,19750,19681,19752,19815).

Flexible Variable Definitions: Update

Mypy 1.16.0 introduced--allow-redefinition-new, which allows redefining variables
with different types, and inferring union types for variables from multiple assignments.
The feature is now documented in the--help output, but the feature is still experimental.

We are planning to enable this by default in mypy 2.0, and we will also deprecate the
older--allow-redefinition flag. Since the new behavior differs significantly from
the older flag, we encourage users of--allow-redefinition to experiment with
--allow-redefinition-new and create a GitHub issue if the new functionality doesn't
support some important use cases.

This feature was contributed by Jukka Lehtosalo.

Inferred Type for Bare ClassVar

A ClassVar without an explicit type annotation now causes the type of the variable
to be inferred from the initializer:

fromtypingimportClassVarclassItem:### Type of 'next_id' is now 'int' (it was 'Any')next_id:ClassVar=1    ...

This feature was contributed by Ivan Levkivskyi (PR19573).

Disjoint Base Classes (@​disjoint_base, PEP 800)

Mypy now understands disjoint bases (PEP 800): it recognizes the@disjoint_base
decorator, and rejects class definitions that combine mutually incompatible base classes,
and takes advantage of the fact that such classes cannot exist in reachability and
narrowing logic.

This class definition will now generate an error:


Configuration

📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated byMend Renovate. View therepository job log.

@sonarqubecloud
Copy link

Quality Gate PassedQuality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@renovaterenovatebot changed the titleUpdate dependency mypy to v1.10.0Update dependency mypy to v1.10.0 - autoclosedJun 18, 2024
@renovaterenovatebot closed thisJun 18, 2024
@renovaterenovatebot deleted the renovate/mypy-1.x-lockfile branchJune 18, 2024 04:11
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.10.0 - autoclosedUpdate dependency mypy to v1.10.0Jun 25, 2024
@renovaterenovatebot reopened thisJun 25, 2024
@renovaterenovatebot restored the renovate/mypy-1.x-lockfile branchJune 25, 2024 01:52
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.10.0Update dependency mypy to v1.10.1Jun 25, 2024
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from7a5104f toe8071ffCompareJune 25, 2024 01:53
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.10.1Update dependency mypy to v1.11.0Jul 19, 2024
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch frome8071ff toaabeab2CompareJuly 19, 2024 19:12
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch fromaabeab2 to0d4bde3CompareJuly 31, 2024 01:54
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.11.0Update dependency mypy to v1.11.1Jul 31, 2024
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.11.1Update dependency mypy to v1.11.2Aug 24, 2024
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from0d4bde3 to4d90c6cCompareAugust 24, 2024 23:29
@sonarqubecloud
Copy link

@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from4d90c6c tobc02c4eCompareOctober 14, 2024 19:38
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.11.2Update dependency mypy to v1.12.0Oct 14, 2024
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch frombc02c4e to3649088CompareOctober 20, 2024 04:12
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.12.0Update dependency mypy to v1.12.1Oct 20, 2024
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from3649088 to49947e8CompareOctober 23, 2024 00:30
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.12.1Update dependency mypy to v1.13.0Oct 23, 2024
@sonarqubecloud
Copy link

@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from49947e8 toa285999CompareDecember 20, 2024 15:52
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.13.0Update dependency mypy to v1.14.0Dec 20, 2024
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch froma285999 tod57f2b7CompareDecember 30, 2024 20:08
@renovaterenovatebot changed the titleUpdate dependency mypy to v1.14.0Update dependency mypy to v1.14.1Dec 30, 2024
@sonarqubecloud
Copy link

@renovaterenovatebot changed the titleUpdate dependency mypy to v1.14.1fix(deps): update dependency mypy to v1.14.1Jan 3, 2025
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch fromd57f2b7 to973436cCompareFebruary 5, 2025 10:53
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.14.1fix(deps): update dependency mypy to v1.15.0Feb 5, 2025
@sonarqubecloud
Copy link

@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from973436c to3bdec91CompareMay 29, 2025 14:32
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.15.0fix(deps): update dependency mypy to v1.16.0May 29, 2025
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from3bdec91 toa017713CompareJune 16, 2025 19:51
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.16.0fix(deps): update dependency mypy to v1.16.1Jun 16, 2025
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch froma017713 todb6f722CompareJuly 14, 2025 23:58
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.16.1fix(deps): update dependency mypy to v1.17.0Jul 14, 2025
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch fromdb6f722 to271a61aCompareAugust 7, 2025 11:40
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.17.0fix(deps): update dependency mypy to v1.17.1Aug 7, 2025
@sonarqubecloud
Copy link

@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.17.1fix(deps): update dependency mypy to v1.17.1 - autoclosedSep 5, 2025
@renovaterenovatebot closed thisSep 5, 2025
@renovaterenovatebot deleted the renovate/mypy-1.x-lockfile branchSeptember 5, 2025 18:08
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.17.1 - autoclosedfix(deps): update dependency mypy to v1.17.1Sep 12, 2025
@renovaterenovatebot reopened thisSep 12, 2025
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.17.1fix(deps): update dependency mypy to v1.18.1Sep 12, 2025
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from271a61a to316706dCompareSeptember 13, 2025 22:43
@renovaterenovatebotforce-pushed therenovate/mypy-1.x-lockfile branch from316706d tob6dd589CompareSeptember 19, 2025 02:42
@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.18.1fix(deps): update dependency mypy to v1.18.2Sep 19, 2025
@sonarqubecloud
Copy link

@renovaterenovatebot changed the titlefix(deps): update dependency mypy to v1.18.2chore(deps): update dependency mypy to v1.18.2Sep 25, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant


[8]ページ先頭

©2009-2025 Movatter.jp