Skip to content

Commit 5286889

Browse files
chore(deps): Bump mypy from 1.15.0 to 1.16.1 in /packages/@jsii/python-runtime (#4847)
Bumps [mypy](https://github.com/python/mypy) from 1.15.0 to 1.16.1. <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> <h3>Remove Support for targeting Python 3.8</h3> <p>Mypy now requires <code>--python-version 3.9</code> or greater. Support for only Python 3.8 is fully removed now. Given an unsupported version, mypy will default to the oldest supported one, currently 3.9.</p> <p>This change is necessary because typeshed stopped supporting Python 3.8 after it reached its End of Life in October 2024.</p> <p>Contributed by Marc Mueller (PR <a href="https://redirect.github.com/python/mypy/pull/19157">19157</a>, PR <a href="https://redirect.github.com/python/mypy/pull/19162">19162</a>).</p> <h3>Initial Support for Python 3.14</h3> <p>Mypy is now tested on 3.14 and mypyc works with 3.14.0b3 and later. Mypyc compiled wheels of mypy itself will be available for new versions after 3.14.0rc1 is released.</p> <p>Note that not all new features might be supported just yet.</p> <p>Contributed by Marc Mueller (PR <a href="https://redirect.github.com/python/mypy/pull/19164">19164</a>)</p> <h3>Deprecated Flag: --force-uppercase-builtins</h3> <p>Mypy only supports Python 3.9+. The --force-uppercase-builtins flag is now deprecated and a no-op. It will be removed in a future version.</p> <p>Contributed by Marc Mueller (PR <a href="https://redirect.github.com/python/mypy/pull/19176">19176</a>)</p> <h2>Mypy 1.16</h2> <p>We’ve just uploaded mypy 1.16 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 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>Different Property Getter and Setter Types</h3> <p>Mypy now supports using different types for a property getter and setter:</p> <pre lang="python"><code>class A: _value: int <pre><code>@Property </code></pre> <p>&lt;/tr&gt;&lt;/table&gt; </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/68b8fa097d080c92d30a429bc74de8acd56caf85"><code>68b8fa0</code></a> Bump version to 1.16.1</li> <li><a href="https://github.com/python/mypy/commit/e253eded9c887630f3f5404c4b9f73f13570476a"><code>e253ede</code></a> Single underscore is not a sunder (<a href="https://redirect.github.com/python/mypy/issues/19273">#19273</a>)</li> <li><a href="https://github.com/python/mypy/commit/9fb5ff66c51bd971d7a6b1260cc0ec9f1b82cc06"><code>9fb5ff6</code></a> Fix properties with setters after deleters (<a href="https://redirect.github.com/python/mypy/issues/19248">#19248</a>)</li> <li><a href="https://github.com/python/mypy/commit/c20fd7838338cd65d6c7c6e252eda85996cfc98e"><code>c20fd78</code></a> Handle assignment of bound methods in class bodies (<a href="https://redirect.github.com/python/mypy/issues/19233">#19233</a>)</li> <li><a href="https://github.com/python/mypy/commit/c86480ce51e4bb6db21f4b3f0b3ec8833aafc8ce"><code>c86480c</code></a> Tighten metaclass <strong>call</strong> handling in protocols (<a href="https://redirect.github.com/python/mypy/issues/19191">#19191</a>)</li> <li><a href="https://github.com/python/mypy/commit/cb3c6ec6a7aaa96a0e26768a946ac63ea14115f2"><code>cb3c6ec</code></a> Fix crash on partial type used as context (<a href="https://redirect.github.com/python/mypy/issues/19216">#19216</a>)</li> <li><a href="https://github.com/python/mypy/commit/c39f5e73c47182e51c5d8d488f7cc7301257c974"><code>c39f5e7</code></a> [mypyc] Fixing condition for handling user-defined <strong>del</strong> (<a href="https://redirect.github.com/python/mypy/issues/19188">#19188</a>)</li> <li><a href="https://github.com/python/mypy/commit/0a4f28431faa18e59d35bc269cb0ea6c00810653"><code>0a4f284</code></a> Fix crash on invalid property inside its own body (<a href="https://redirect.github.com/python/mypy/issues/19208">#19208</a>)</li> <li><a href="https://github.com/python/mypy/commit/9b079f6592740a51c0e629728eeb0324ad85126f"><code>9b079f6</code></a> Bump version to 1.16.1+dev</li> <li><a href="https://github.com/python/mypy/commit/9e72e9601f4c2fb6866cfec98fc40a31c91ccdb0"><code>9e72e96</code></a> Update version to 1.16.0</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.15.0...v1.16.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.15.0&new-version=1.16.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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 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) </details>
1 parent 9e18c47 commit 5286889

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

packages/@jsii/python-runtime/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
black~=25.1
2-
mypy==1.15.0
2+
mypy==1.17.1
33
pip~=25.1
44
pytest~=8.4
55
pytest-mypy~=1.0

packages/@jsii/python-runtime/tests/test_compliance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,11 +884,11 @@ def private_property(self):
884884
def test_doNotOverridePrivates_property_getter():
885885
class TDoNotOverridePrivates(DoNotOverridePrivates):
886886
@property
887-
def private_property(self):
887+
def private_property(self) -> str:
888888
return "privateProperty-Override"
889889

890890
@private_property.setter
891-
def private_property(self):
891+
def private_property(self, _: str):
892892
raise RuntimeError("Boom")
893893

894894
obj = TDoNotOverridePrivates()

packages/@jsii/python-runtime/tests/test_invoke_bin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ def test_invoke_script_with_line_flush(
9494
buffered to the end
9595
"""
9696
script_path = f".env/bin/calc"
97-
proc = subprocess.Popen(
98-
[script_path, "arg1", "delay"], stdout=subprocess.PIPE, bufsize=1
99-
)
97+
proc = subprocess.Popen([script_path, "arg1", "delay"], stdout=subprocess.PIPE)
10098

10199
timed_lines = []
102100
last_dt = None

0 commit comments

Comments
 (0)