[PR #203] [MERGED] chore(deps-dev): update mypy requirement from ~=2.3.0 to >=2.3,<2.5 #202

Closed
opened 2026-10-31 22:02:16 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/comfy-python-sdk/pull/203
Author: @dependabot[bot]
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @mattmillerai

Base: main ← Head: dependabot/pip/mypy-gte-2.3-and-lt-2.5


📝 Commits (1)

  • d6fece8 chore(deps-dev): update mypy requirement from ~=2.3.0 to >=2.3,<2.5

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 pyproject.toml (+1 -1)

📄 Description

Updates the requirements on mypy to permit the latest version.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next Release

Mypy 2.4

We've just uploaded mypy 2.4.0 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.

Python 3.15 Support

Mypy 2.4 supports running on Python 3.15 and type checking most Python 3.15 features. This includes the new builtin sentinel type for sentinel values (PEP 661), which mypy now supports (see below for details). Lazy imports (PEP 810) and unpacking in comprehensions (PEP 798) are also supported. Closed TypedDicts (PEP 728) have been supported since mypy 2.2, but the extra_items TypedDict argument, also introduced in PEP 728, is still unsupported. Support for extra_items will be added in a future mypy release.

Native Parser Enabled by Default

Mypy now uses the new native parser by default. It's based on the Ruff parser, and it's significantly faster than the legacy parser, which uses the stdlib ast module. The native parser also has other benefits:

  • You can target newer Python versions and use recent Python syntax even when running mypy on an older Python version. For example, you can use --python-version 3.15 when running mypy on Python 3.14.
  • Stub files can use syntax that is newer than the target Python version. For example, stubs can use the PEP 695 generic class syntax (class Box[T]: ...) when running on or targeting Python 3.10.
  • Parallel type checking requires the native parser.

The legacy parser is still available through --no-native-parser, or native_parser = False in the config file (native_parser = false under [tool.mypy] in pyproject.toml). We are planning to remove the legacy parser in early 2027. If you run into a problem with the native parser, please report it on the issue tracker.

Unlike the legacy parser, the native parser doesn't support type comments for variables defined by for and with statements. These type comments are silently ignored, and the types of the variables are

... (truncated)

Commits

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/comfy-python-sdk/pull/203 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@mattmillerai](https://github.com/mattmillerai) **Base:** `main` ← **Head:** `dependabot/pip/mypy-gte-2.3-and-lt-2.5` --- ### 📝 Commits (1) - [`d6fece8`](https://github.com/Comfy-Org/comfy-python-sdk/commit/d6fece8b204dfcf7a4f5e6453818f7ed27741acc) chore(deps-dev): update mypy requirement from ~=2.3.0 to >=2.3,<2.5 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's changelog</a>.</em></p> <blockquote> <h1>Mypy Release Notes</h1> <h2>Next Release</h2> <h2>Mypy 2.4</h2> <p>We've just uploaded mypy 2.4.0 to the Python Package Index (<a href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:</p> <pre><code>python3 -m pip install -U mypy </code></pre> <p>You can read the full documentation for this release on <a href="http://mypy.readthedocs.io">Read the Docs</a>.</p> <h3>Python 3.15 Support</h3> <p>Mypy 2.4 supports running on Python 3.15 and type checking most Python 3.15 features. This includes the new builtin <code>sentinel</code> type for sentinel values (PEP 661), which mypy now supports (see below for details). Lazy imports (PEP 810) and unpacking in comprehensions (PEP 798) are also supported. Closed TypedDicts (PEP 728) have been supported since mypy 2.2, but the <code>extra_items</code> TypedDict argument, also introduced in PEP 728, is still unsupported. Support for <code>extra_items</code> will be added in a future mypy release.</p> <h3>Native Parser Enabled by Default</h3> <p>Mypy now uses the new native parser by default. It's based on the Ruff parser, and it's significantly faster than the legacy parser, which uses the stdlib <code>ast</code> module. The native parser also has other benefits:</p> <ul> <li>You can target newer Python versions and use recent Python syntax even when running mypy on an older Python version. For example, you can use <code>--python-version 3.15</code> when running mypy on Python 3.14.</li> <li>Stub files can use syntax that is newer than the target Python version. For example, stubs can use the PEP 695 generic class syntax (<code>class Box[T]: ...</code>) when running on or targeting Python 3.10.</li> <li>Parallel type checking requires the native parser.</li> </ul> <p>The legacy parser is still available through <code>--no-native-parser</code>, or <code>native_parser = False</code> in the config file (<code>native_parser = false</code> under <code>[tool.mypy]</code> in pyproject.toml). We are planning to remove the legacy parser in early 2027. If you run into a problem with the native parser, please report it on the <a href="https://github.com/python/mypy/issues">issue tracker</a>.</p> <p>Unlike the legacy parser, the native parser doesn't support type comments for variables defined by <code>for</code> and <code>with</code> statements. These type comments are silently ignored, and the types of the variables are</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/935ba8afba7ceacca0651579450c74339f343016"><code>935ba8a</code></a> Bump version to 2.4.0</li> <li><a href="https://github.com/python/mypy/commit/334a678967dc6bcda3d3f8cb82e253dd61fa2be9"><code>334a678</code></a> Add link for PR 22066 in mypy 2.4 changelog (<a href="https://redirect.github.com/python/mypy/issues/22082">#22082</a>)</li> <li><a href="https://github.com/python/mypy/commit/fe69660bcdaa76cccb1aedbb4b9c1c7627215571"><code>fe69660</code></a> Finalize mypy 2.4 changelog (<a href="https://redirect.github.com/python/mypy/issues/22080">#22080</a>)</li> <li><a href="https://github.com/python/mypy/commit/541fd87ac53581fb3c511b277fd780ec4e869c95"><code>541fd87</code></a> Various mypy 2.4 changelog updates (<a href="https://redirect.github.com/python/mypy/issues/22077">#22077</a>)</li> <li><a href="https://github.com/python/mypy/commit/b231182c0b2993918f74594236bda7d3ec6fcbe5"><code>b231182</code></a> Update native parser docs (<a href="https://redirect.github.com/python/mypy/issues/22078">#22078</a>)</li> <li><a href="https://github.com/python/mypy/commit/04fe42ce217f120a4de2c1fd62b71ef77452d699"><code>04fe42c</code></a> Initial Changelog for Mypy 2.4 (<a href="https://redirect.github.com/python/mypy/issues/22071">#22071</a>)</li> <li><a href="https://github.com/python/mypy/commit/06174941bca0e88567441ee3cb0ffaef0dd22e2c"><code>0617494</code></a> Quick fix for non UTF-8 encodings with new parser (<a href="https://redirect.github.com/python/mypy/issues/22066">#22066</a>)</li> <li><a href="https://github.com/python/mypy/commit/b2f9b60eae5ac7cd9c6a60650b128815bb703daf"><code>b2f9b60</code></a> Bump librt to 0.16.0 (<a href="https://redirect.github.com/python/mypy/issues/22067">#22067</a>)</li> <li><a href="https://github.com/python/mypy/commit/9d798dcb9589f9bd62e625a97d8db23ad9a678fa"><code>9d798dc</code></a> Sync typeshed (<a href="https://redirect.github.com/python/mypy/issues/22054">#22054</a>)</li> <li><a href="https://github.com/python/mypy/commit/0861bb6450d6d3658e44dbca9cd2ba478faf3c1d"><code>0861bb6</code></a> Reduce max protocol stack size to 20 (<a href="https://redirect.github.com/python/mypy/issues/22053">#22053</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v2.3.0...v2.4.0">compare view</a></li> </ul> </details> <br /> 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 22:02:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/comfy-python-sdk#202
No description provided.