Bump pyrefly from 0.56.0 to 0.57.1 in /backend (#1622)

Bumps [pyrefly](https://github.com/facebook/pyrefly) from 0.56.0 to
0.57.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/facebook/pyrefly/releases">pyrefly's
releases</a>.</em></p>
<blockquote>
<h2>Pyrefly v0.57.1</h2>
<p>Fixed a bug that could cause Pyrefly to hang.</p>
<h2>Pyrefly v0.57.0</h2>
<p><strong>Status: Beta</strong><br />
<em>Release date: March 16, 2026</em></p>
<p>Pyrefly 0.57.0 bundles <strong>116 commits</strong> from <strong>17
contributors</strong>.</p>
<hr />
<h2> New &amp; Improved</h2>
<table>
<thead>
<tr>
<th align="left">Area</th>
<th align="left">What’s new</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><strong>Type Checking</strong></td>
<td align="left">- Improved type narrowing for <code>hasattr</code>
inside loops <!-- raw HTML omitted --><!-- raw HTML omitted -->-
<code>pyrefly suppress</code> no longer corrupts multiline
f-strings/t-strings by inserting suppression comments inside the string;
it now places comments above the string and also matches suppressions
correctly for errors inside multiline f/t-strings <!-- raw HTML omitted
--><!-- raw HTML omitted -->- Improved <code>namedtuple</code> support
with <code>*</code> field unpacking <!-- raw HTML omitted --><!-- raw
HTML omitted -->- Fewer false-positive “variable is not initialized”
errors</td>
</tr>
<tr>
<td align="left"><strong>Language Server</strong></td>
<td align="left">- if a nested pyproject.toml contains
<code>[tool.ruff]</code> / <code>[tool.mypy]</code> /
<code>[tool.pyright]</code>, it’s treated as a strong “this is a Python
project root” marker, preventing parent pyrefly.toml from incorrectly
shadowing it (notably improving go-to-def accuracy on some repos)</td>
</tr>
<tr>
<td align="left"><strong>Performance</strong></td>
<td align="left">- Typechecking speed has improved, making it now ~20%
faster to type check Pytorch on recent benchmarks</td>
</tr>
</tbody>
</table>
<hr />
<h2>🐛 bug fixes</h2>
<p>We closed 24 bug issues this release 👏</p>
<ul>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2696">#2696</a>:
Fixed an issue where Pyrefly’s LSP incorrectly flagged <code>from typing
import NewType</code> as unused, even when <code>NewType(...)</code> was
referenced.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2743">#2743</a>:
Fixed an issue where <code>TypedDict</code> fields named items/values
prevented access to the corresponding <code>dict.items()</code> /
<code>dict.values()</code> methods via attribute lookup.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2745">#2745</a>:
Fixed an issue where chained/nested narrowing expressions (e.g.
multi-clause and conditions) failed to narrow correctly when using
negative subscript indices.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2737">#2737</a>:
Fixed an issue where <code>functools.partial(...)</code> results
couldn’t be assigned back to a Callable typed with a
<code>ParamSpec</code>, causing a false-positive type error.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2650">#2650</a>:
Fixed an issue where a <code>Protocol</code> parameterized by
<code>ParamSpec[...]</code> wasn’t considered compatible with an
equivalent “gradual” protocol using <code>*args: Any, **kwargs:
Any</code>.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2334">#2334</a>:
Fixed an issue where calling <code>__init__</code> on parametrized bound
methods could trigger a false-positive type error due to incorrect
attribute lookup behavior.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/2731">#2731</a>:
Fixed an issue where <code>super()</code> calls to abstract methods that
do have a concrete runtime body were incorrectly reported as
missing-attribute / abstract-call errors.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/828">#828</a>:
Fixed an issue where reading a conditionally-initialized variable didn’t
“commit” the initialization, leading to redundant follow-on “may be
uninitialized” errors.</li>
<li><a
href="https://redirect.github.com/facebook/pyrefly/issues/835">#835</a>:
Fixed an issue where type information for subclasses wasn’t handled
correctly, leading to failures when type-checking subclass
relationships.</li>
<li>And more! <a
href="https://redirect.github.com/facebook/pyrefly/issues/2522">#2522</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/1800">#1800</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2736">#2736</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2382">#2382</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/913">#913</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/1397">#1397</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2261">#2261</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2669">#2669</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2744">#2744</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2739">#2739</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/1575">#1575</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/903">#903</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/1043">#1043</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/1429">#1429</a>,
<a
href="https://redirect.github.com/facebook/pyrefly/issues/2607">#2607</a></li>
</ul>
<p>Thank-you to all our contributors who found these bugs and reported
them! Did you know this is one of the most helpful contributions you can
make to an open-source project? If you find any bugs in Pyrefly we want
to know about them! Please open a bug report issue <a
href="https://github.com/facebook/pyrefly/issues">here</a></p>
<hr />
<h2>📦 Upgrade</h2>
<pre lang="shell"><code>pip install --upgrade pyrefly==0.57.0
</code></pre>
<h3>How to safely upgrade your codebase</h3>
<p>Upgrading the version of Pyrefly you're using or a third-party
library you depend on can reveal new type errors in your code. Fixing
them all at once is often unrealistic. We've written scripts to help you
temporarily silence them. After upgrading, follow these steps:</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="9d24c65115"><code>9d24c65</code></a>
v0.57.1</li>
<li><a
href="0c8881eee7"><code>0c8881e</code></a>
Fix infinite loop in variance inference for self-referential generic
classes</li>
<li><a
href="12e59d0b05"><code>12e59d0</code></a>
Reviewed By: rchen152</li>
<li><a
href="e02d9948c8"><code>e02d994</code></a>
Wire up Glean external references for incoming call hierarchy</li>
<li><a
href="3c5feafbce"><code>3c5feaf</code></a>
Add convert_external_references_to_incoming_calls</li>
<li><a
href="8524405b36"><code>8524405</code></a>
add &quot;why you should use pyrefly&quot; FAQ</li>
<li><a
href="753c5a369a"><code>753c5a3</code></a>
Add PysaModuleIndex to replace cross-module ModuleContext::create
calls</li>
<li><a
href="651f4984b0"><code>651f498</code></a>
Optimise comment parsing</li>
<li><a
href="372fe49ab0"><code>372fe49</code></a>
Remove unused code in the pyrefly_util crate</li>
<li><a
href="1998c105e6"><code>1998c10</code></a>
Remove unused code in the pyrefly_bundled crate</li>
<li>Additional commits viewable in <a
href="https://github.com/facebook/pyrefly/compare/0.56.0...0.57.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyrefly&package-manager=uv&previous-version=0.56.0&new-version=0.57.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 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>
This commit is contained in:
dependabot[bot]
2026-03-24 04:11:02 +00:00
committed by GitHub
parent dc373962f3
commit 3be18abccd
2 changed files with 12 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ dev = [
"mypy==1.19.0",
"pluggy==1.6.0",
"pylint==4.0.2",
"pyrefly==0.56.0",
"pyrefly==0.57.1",
"pytest-asyncio==1.3.0",
"pytest-cov==7.0.0",
"pytest-xdist==3.8.0",

22
backend/uv.lock generated
View File

@@ -408,7 +408,7 @@ dev = [
{ name = "mypy", specifier = "==1.19.0" },
{ name = "pluggy", specifier = "==1.6.0" },
{ name = "pylint", specifier = "==4.0.2" },
{ name = "pyrefly", specifier = "==0.56.0" },
{ name = "pyrefly", specifier = "==0.57.1" },
{ name = "pytest", specifier = "==9.0.1" },
{ name = "pytest-asyncio", specifier = "==1.3.0" },
{ name = "pytest-cov", specifier = "==7.0.0" },
@@ -1427,18 +1427,18 @@ wheels = [
[[package]]
name = "pyrefly"
version = "0.56.0"
version = "0.57.1"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/54/c6/24259081a05ce112edfa313c753d556406d1ff31e885dd96b366cc736a93/pyrefly-0.56.0.tar.gz", hash = "sha256:f84d21d9b9b58481eea02204e2f73cabb93751b21ab2cd99178b4bde24be6a82", size = 5272585, upload-time = "2026-03-11T18:38:51.426Z" }
sdist = { url = "https://files.pythonhosted.org/packages/c9/c1/c17211e5bbd2b90a24447484713da7cc2cee4e9455e57b87016ffc69d426/pyrefly-0.57.1.tar.gz", hash = "sha256:b05f6f5ee3a6a5d502ca19d84cb9ab62d67f05083819964a48c1510f2993efc6", size = 5310800, upload-time = "2026-03-18T18:42:35.614Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/6c/36/d9553098c03062f04e8dc5adc802f585749d6c0b129553a78e20efab9c3d/pyrefly-0.56.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:21f018f47debc0842b2c3072201e53c138ae32bcda4f3119bfc8d23f59c16b3e", size = 12601703, upload-time = "2026-03-11T18:38:26.34Z" },
{ url = "https://files.pythonhosted.org/packages/60/95/bcc6ff4843eb56a687321677747637aad3bceec084b710c5e7f1e160fbe4/pyrefly-0.56.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:95366056ceb224571b9f1c20e801d949f2c1fa2cf4ed6ceaadf85ca2ebe6fb27", size = 12146344, upload-time = "2026-03-11T18:38:29.163Z" },
{ url = "https://files.pythonhosted.org/packages/8d/fd/44264f7e0c53490cccdeee506ab6bdcf6dd2188601cf15ba8953f990b697/pyrefly-0.56.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5478229b09f4bba5bfea000b5ba20ea405f62dc7619ea81197e7ea637d6cba8d", size = 34613710, upload-time = "2026-03-11T18:38:31.962Z" },
{ url = "https://files.pythonhosted.org/packages/d1/31/b156520a4031fc631267c56c81f99b64901827e217c19f95b61a7a94d7b0/pyrefly-0.56.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e5f53781875024086a5b9f31a89c57d2977487fc3f819d9255008ad34b86fe2", size = 37254696, upload-time = "2026-03-11T18:38:35.553Z" },
{ url = "https://files.pythonhosted.org/packages/cf/f2/ad6a354755447a2b84cc9d834cd0f92e47c0ca1556bff49ee8ee230d4bbd/pyrefly-0.56.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec6ab3f9e2c03bae8dfa520f52778f47b6762020929a664177d36aa3b941db22", size = 39843682, upload-time = "2026-03-11T18:38:39.242Z" },
{ url = "https://files.pythonhosted.org/packages/89/4e/631ca74575c20af35d07b894b53dcd8755793a126f63ad4301a303715e52/pyrefly-0.56.0-py3-none-win32.whl", hash = "sha256:f0440a4bbf119ab646468f360e0bd047df051352db1e5d5b9fd58f89e8458809", size = 11677289, upload-time = "2026-03-11T18:38:42.167Z" },
{ url = "https://files.pythonhosted.org/packages/98/08/7a56bde1b602efbfdd94c1044377e7d665d1303ccc96c7fd7a076e1883c8/pyrefly-0.56.0-py3-none-win_amd64.whl", hash = "sha256:f4948021639288b1ccda5f124c9562dc7f0a2679111eb314fa266c7bfd9f8603", size = 12488240, upload-time = "2026-03-11T18:38:45.285Z" },
{ url = "https://files.pythonhosted.org/packages/d2/20/7df64f185f5dff92d97ee319102ff2940e13a31647f0502d162f399cfd19/pyrefly-0.56.0-py3-none-win_arm64.whl", hash = "sha256:4683f5e8820d5fbfb84231b643b2c5f6cd40b982cac48ef756d4e3d9b09a39cc", size = 11953665, upload-time = "2026-03-11T18:38:48.759Z" },
{ url = "https://files.pythonhosted.org/packages/b7/58/8af37856c8d45b365ece635a6728a14b0356b08d1ff1ac601d7120def1e0/pyrefly-0.57.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:91974bfbe951eebf5a7bc959c1f3921f0371c789cad84761511d695e9ab2265f", size = 12681847, upload-time = "2026-03-18T18:42:10.963Z" },
{ url = "https://files.pythonhosted.org/packages/5f/d7/fae6dd9d0355fc5b8df7793f1423b7433ca8e10b698ea934c35f0e4e6522/pyrefly-0.57.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:808087298537c70f5e7cdccb5bbaad482e7e056e947c0adf00fb612cbace9fdc", size = 12219634, upload-time = "2026-03-18T18:42:13.469Z" },
{ url = "https://files.pythonhosted.org/packages/29/8f/9511ae460f0690e837b9ba0f7e5e192079e16ff9a9ba8a272450e81f11f8/pyrefly-0.57.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b01f454fa5539e070c0cba17ddec46b3d2107d571d519bd8eca8f3142ba02a6", size = 34947757, upload-time = "2026-03-18T18:42:17.152Z" },
{ url = "https://files.pythonhosted.org/packages/07/43/f053bf9c65218f70e6a49561e9942c7233f8c3e4da8d42e5fe2aae50b3d2/pyrefly-0.57.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:02ad59ea722191f51635f23e37574662116b82ca9d814529f7cb5528f041f381", size = 37621018, upload-time = "2026-03-18T18:42:20.79Z" },
{ url = "https://files.pythonhosted.org/packages/0e/76/9cea46de01665bbc125e4f215340c9365c8d56cda6198ff238a563ea8e75/pyrefly-0.57.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:54bc0afe56776145e37733ff763e7e9679ee8a76c467b617dc3f227d4124a9e2", size = 40203649, upload-time = "2026-03-18T18:42:24.519Z" },
{ url = "https://files.pythonhosted.org/packages/fd/8b/2fb4a96d75e2a57df698a43e2970e441ba2704e3906cdc0386a055daa05a/pyrefly-0.57.1-py3-none-win32.whl", hash = "sha256:468e5839144b25bb0dce839bfc5fd879c9f38e68ebf5de561f30bed9ae19d8ca", size = 11732953, upload-time = "2026-03-18T18:42:27.379Z" },
{ url = "https://files.pythonhosted.org/packages/13/5a/4a197910fe2e9b102b15ae5e7687c45b7b5981275a11a564b41e185dd907/pyrefly-0.57.1-py3-none-win_amd64.whl", hash = "sha256:46db9c97093673c4fb7fab96d610e74d140661d54688a92d8e75ad885a56c141", size = 12537319, upload-time = "2026-03-18T18:42:30.196Z" },
{ url = "https://files.pythonhosted.org/packages/b5/c6/bc442874be1d9b63da1f9debb4f04b7d0c590a8dc4091921f3c288207242/pyrefly-0.57.1-py3-none-win_arm64.whl", hash = "sha256:feb1bbe3b0d8d5a70121dcdf1476e6a99cc056a26a49379a156f040729244dcb", size = 12013455, upload-time = "2026-03-18T18:42:32.928Z" },
]
[[package]]