Files
bracket/backend
dependabot[bot] 66537a31fd Update mypy requirement from 1.15.0 to 1.16.0 in /backend (#1252)
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 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) -&amp;gt; int:
    return self._value

@foo.setter
def foo(self, x: str | int) -&amp;gt; None:
    try:
        self._value = int(x)
    except ValueError:
raise Exception(f&amp;quot;'{x}' is not a valid value for
'foo'&amp;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) -&gt; int | str:
if b:
x = n
else:
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="9e72e9601f"><code>9e72e96</code></a>
Update version to 1.16.0</li>
<li><a
href="8fe719ff3a"><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="2a036e739f"><code>2a036e7</code></a>
Revert &quot;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="b6da4fcf97"><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="334469f999"><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="a499d9fdba"><code>a499d9f</code></a>
Document --allow-redefinition-new (<a
href="https://redirect.github.com/python/mypy/issues/19153">#19153</a>)</li>
<li><a
href="96525a23f0"><code>96525a2</code></a>
Merge commit '9e45dadcf6d8dbab36f83d9df94a706c0b4f9207' into
release-1.16</li>
<li><a
href="9e45dadcf6"><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="772cd0cebe"><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="0b65f21599"><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 />


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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-30 04:40:28 +00:00
..
2023-01-12 21:04:51 +01:00
2022-12-24 14:33:51 +01:00
2022-12-27 12:49:44 +01:00
2024-09-10 20:32:59 +02:00
2024-09-07 12:03:16 +02:00