-
Notifications
You must be signed in to change notification settings - Fork 5
Commit 4c1a7a2
authored
Bump the minor group with 2 updates (#158)
Bumps the minor group with 2 updates:
[mypy](https://github.com/python/mypy) and
[setuptools](https://github.com/pypa/setuptools).
Updates `mypy` from 1.15.0 to 1.16.0
<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 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
def foo(self) -&gt; int:
return self._value
@foo.setter
def foo(self, x: str | int) -&gt; None:
try:
self._value = int(x)
except ValueError:
raise Exception(f&quot;'{x}' is not a valid value for
'foo'&quot;)
</code></pre>
<p></code></pre></p>
<p>This was contributed by Ivan Levkivskyi (PR <a
href="https://redirect.github.com/python/mypy/pull/18510">18510</a>).</p>
<h3>Flexible Variable Redefinitions (Experimental)</h3>
<p>Mypy now allows unannotated variables to be freely redefined with
different types when using the experimental
<code>--allow-redefinition-new</code>
flag. You will also need to enable <code>--local-partial-types</code>.
Mypy will
now infer a union type when different types are assigned to a
variable:</p>
<pre lang="py"><code># mypy: allow-redefinition-new, local-partial-types
<p>def f(n: int, b: bool) -> int | str:
if b:
x = n
else:
</tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python/mypy/commit/9e72e9601f4c2fb6866cfec98fc40a31c91ccdb0"><code>9e72e96</code></a>
Update version to 1.16.0</li>
<li><a
href="https://github.com/python/mypy/commit/8fe719ff3a8d1e26d3841a48df21ddf7d5b3c94d"><code>8fe719f</code></a>
Add changelog for 1.16 (<a
href="https://redirect.github.com/python/mypy/issues/19138">#19138</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/2a036e739f8691576056669371d9f020e95c2603"><code>2a036e7</code></a>
Revert "Infer correct types with overloads of <code>Type[Guard |
Is]</code> (<a
href="https://redirect.github.com/python/mypy/issues/19161">#19161</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/b6da4fcf97fca9cd28e81a880f818dc364b5a06d"><code>b6da4fc</code></a>
Allow enum members to have type objects as values (<a
href="https://redirect.github.com/python/mypy/issues/19160">#19160</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/334469f999c5c777124a123062b4349614447e0d"><code>334469f</code></a>
[mypyc] Improve documentation of native and non-native classes (<a
href="https://redirect.github.com/python/mypy/issues/19154">#19154</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/a499d9fdba06732248c07586f2fd95c47a4fa0f7"><code>a499d9f</code></a>
Document --allow-redefinition-new (<a
href="https://redirect.github.com/python/mypy/issues/19153">#19153</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/96525a23f0f8a3826d9875fa8b6e8e362cd9525e"><code>96525a2</code></a>
Merge commit '9e45dadcf6d8dbab36f83d9df94a706c0b4f9207' into
release-1.16</li>
<li><a
href="https://github.com/python/mypy/commit/9e45dadcf6d8dbab36f83d9df94a706c0b4f9207"><code>9e45dad</code></a>
Clear more data in TypeChecker.reset() instead of asserting (<a
href="https://redirect.github.com/python/mypy/issues/19087">#19087</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/772cd0cebed6884636de0019e43caa06dbaa39ba"><code>772cd0c</code></a>
Add --strict-bytes to --strict (<a
href="https://redirect.github.com/python/mypy/issues/19049">#19049</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/0b65f215996401264a68a3a06f3fbcd19915a9a5"><code>0b65f21</code></a>
Admit that Final variables are never redefined (<a
href="https://redirect.github.com/python/mypy/issues/19083">#19083</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.15.0...v1.16.0">compare
view</a></li>
</ul>
</details>
<br />
Updates `setuptools` from 80.3.1 to 80.9.0
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pypa/setuptools/blob/main/NEWS.rst">setuptools's
changelog</a>.</em></p>
<blockquote>
<h1>v80.9.0</h1>
<h2>Features</h2>
<ul>
<li>Set a deadline for the removal of pkg_resources later this year
(December). (<a
href="https://redirect.github.com/pypa/setuptools/issues/3085">#3085</a>)</li>
<li>Removed reliance on pkg_resources in test_wheel. (<a
href="https://redirect.github.com/pypa/setuptools/issues/3085">#3085</a>)</li>
</ul>
<h1>v80.8.0</h1>
<h2>Features</h2>
<ul>
<li>Replaced more references to pkg_resources with importlib equivalents
in wheel odule. (<a
href="https://redirect.github.com/pypa/setuptools/issues/3085">#3085</a>)</li>
<li>Restore explicit LICENSE file. (<a
href="https://redirect.github.com/pypa/setuptools/issues/5001">#5001</a>)</li>
<li>Removed no longer used build dependency on
<code>coherent.licensed</code>. (<a
href="https://redirect.github.com/pypa/setuptools/issues/5003">#5003</a>)</li>
</ul>
<h1>v80.7.1</h1>
<h2>Bugfixes</h2>
<ul>
<li>Only attempt to fetch eggs for unsatisfied requirements. (<a
href="https://redirect.github.com/pypa/setuptools/issues/4998">#4998</a>)</li>
<li>In installer, when discovering egg dists, let metadata discovery
search each egg. (<a
href="https://redirect.github.com/pypa/setuptools/issues/4998">#4998</a>)</li>
</ul>
<h1>v80.7.0</h1>
<h2>Features</h2>
<ul>
<li>Removed usage of pkg_resources from installer. Set an official
deadline on the installer deprecation to 2025-10-31. (<a
href="https://redirect.github.com/pypa/setuptools/issues/4997">#4997</a>)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><a
href="https://redirect.github.com/pypa/setuptools/issues/4996">#4996</a></li>
</ul>
<h1>v80.6.0</h1>
<p>Features</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pypa/setuptools/commit/9c4d383631d3951fcae0afd73b5d08ff5a262976"><code>9c4d383</code></a>
Bump version: 80.8.0 → 80.9.0</li>
<li><a
href="https://github.com/pypa/setuptools/commit/05cb3c84f1422f3b26ccfb00f4c43886dc55b9bc"><code>05cb3c8</code></a>
Merge pull request <a
href="https://redirect.github.com/pypa/setuptools/issues/5014">#5014</a>
from pypa/debt/pkg_resources-deadline</li>
<li><a
href="https://github.com/pypa/setuptools/commit/3b0bf5bd43034c448a10e7102788fe710b4bb496"><code>3b0bf5b</code></a>
Adjust ignore</li>
<li><a
href="https://github.com/pypa/setuptools/commit/9c28cdffd423f83e43dbfd39fc793c251da48585"><code>9c28cdf</code></a>
Set a deadline for the removal of pkg_resources later this year
(December).</li>
<li><a
href="https://github.com/pypa/setuptools/commit/a3bfef95193bf0ff78ef6e0fb8c63a3728f443b0"><code>a3bfef9</code></a>
Merge pull request <a
href="https://redirect.github.com/pypa/setuptools/issues/5013">#5013</a>
from DimitriPapadopoulos/ISC</li>
<li><a
href="https://github.com/pypa/setuptools/commit/64bf9d0ce88a09748f702bd7736d9ec2879aa6ef"><code>64bf9d0</code></a>
Enforce ruff/flake8-implicit-str-concat rules (ISC)</li>
<li><a
href="https://github.com/pypa/setuptools/commit/3250c25197b299658cfd4d0db67770fc29b47277"><code>3250c25</code></a>
Fix broken link in docs (<a
href="https://redirect.github.com/pypa/setuptools/issues/4947">#4947</a>)</li>
<li><a
href="https://github.com/pypa/setuptools/commit/5ccf50e01ab0d303f524c065f2cb51042b34bc55"><code>5ccf50e</code></a>
Merge pull request <a
href="https://redirect.github.com/pypa/setuptools/issues/5006">#5006</a>
from pypa/feature/remove-more-pkg_resources</li>
<li><a
href="https://github.com/pypa/setuptools/commit/134e587c0ba0b59e1661f08a45e6d6d1ecd24329"><code>134e587</code></a>
Suppress nitpicky typecheck in pyright.</li>
<li><a
href="https://github.com/pypa/setuptools/commit/0bf2663a19f2d947697997d125c3c880df2011b7"><code>0bf2663</code></a>
Add news fragment.</li>
<li>Additional commits viewable in <a
href="https://github.com/pypa/setuptools/compare/v80.3.1...v80.9.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 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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>File tree
Expand file treeCollapse file tree
1 file changed
+2
-2
lines changedFilter options
Expand file treeCollapse file tree
1 file changed
+2
-2
lines changed+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
|
0 commit comments