Repository navigation
Conversation
|
@ybai08 Thanks for the pull request, and for the thorough analysis and tests. You are correct that this is a bug. Working through it, though, what is reported turns out to be one half of a broader problem. The special methods added to the proxy class should never have been looked up on the wrapped object itself, but always on its type. Special methods are only ever looked up on the type of an object, never the instance, so:
That means the general fix is not a special case for classes, but simply: wrapped_attrs = dir(type(wrapped))in Fixing both halves changes the required code changes, and needs additional tests on top of the ones here: instance attributes shadowing dunder names, on both the Thanks again for reporting the issue and for the investigation which identified it. You will be acknowledged in the changelog entry for the fix. |
|
Thanks for working through it. Looking up the special methods on |
|
By the way. What are you doing that you caught this issue in the first place? In the last couple of weeks I have had a few other obscure corner cases reported that needed fixes and has me wondering whether is AI just being asked to find any problem in the code, or whether, although all reported by different users, you are all somehow connected and working on some hyper complex monkey patching. |
…ect. The special methods added to the class generated for an AutoObjectProxy were determined from dir() of the wrapped object, and the fixups applied when __wrapped__ was reassigned from hasattr() on the wrapped object. As special methods are only ever looked up on the type of an object, this gave the wrong result when the wrapped object was a class, in which case the special methods the class defines for its instances were added to the proxy class, and the special methods of its metaclass were missed. It also gave the wrong result when the wrapped object was an instance, in which case instance attributes shadowing the dunder names were treated as special methods of the wrapped object, and special methods not reported by a __dir__() method were missed. The special methods are now always determined from the type of the wrapped object, which also covers a LazyObjectProxy whose factory returns an object, as resolving the wrapped object reassigns __wrapped__. Supersedes pull request #361.
|
I have released 2.5.2rc1 (https://pypi.org/project/wrapt/2.5.2rc1/) with the changes. The wrapt package gets a lot of use even as a pre-release, so I will let it sit out there as an RC for a few days at least before releasing it as 2.5.2 final version. Thanks for your help again. I will close this PR now since changes were superseded. |
Bumps [wrapt](https://github.com/GrahamDumpleton/wrapt) from 2.5.1 to 2.5.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/GrahamDumpleton/wrapt/releases">wrapt's releases</a>.</em></p> <blockquote> <h2>wrapt 2.5.2</h2> <p>Full release notes: <a href="https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2">https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2</a></p> <p>Install from PyPi (recommended):</p> <pre><code>pip install wrapt==2.5.2 </code></pre> <p>PyPi uploads follow each GitHub release; if <code>pip</code> reports the version is unavailable, the matching PyPi upload may not have happened yet.</p> <p>Pre-built wheels are provided for a range of Python versions and platforms (Linux x86_64/aarch64/riscv64, macOS x86_64 and arm64, Windows x86_64 and arm64, plus PyPy and free-threaded builds). The source distribution is also attached together with <code>SHA256SUMS</code> for verification.</p> <h2>wrapt 2.5.2rc1</h2> <p>Release candidate. Release notes for the upcoming 2.5.2 final (work in progress): <a href="https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2">https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2</a></p> <p>May be installable from PyPi:</p> <pre><code>pip install wrapt==2.5.2rc1 </code></pre> <p>If <code>pip</code> reports the version is unavailable, this candidate either has not been uploaded yet or is not being published to PyPi. Use the attached wheels or build from the source distribution instead:</p> <pre><code>tar xf wrapt-2.5.2rc1.tar.gz cd wrapt-2.5.2rc1 pip install . </code></pre> <p><code>SHA256SUMS</code> is attached for verification of the archives.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/GrahamDumpleton/wrapt/blob/develop/docs/changes.rst">wrapt's changelog</a>.</em></p> <blockquote> <h2>Version 2.5.2</h2> <p><strong>Bugs Fixed</strong></p> <ul> <li>The special methods added to the class generated for an <code>wrapt.AutoObjectProxy</code>, and adjusted when <code>__wrapped__</code> was reassigned, were determined by inspecting the wrapped object itself, rather than the type of the wrapped object. As special methods are only ever looked up on the type of an object, this gave the wrong result in several cases. When the wrapped object was a class, the special methods it defined for its instances were added to the proxy class, so a proxy for a class defining <code>__set_name__()</code> raised <code>TypeError</code> when assigned to an attribute in a class body, a proxy for a class defining <code>__get__()</code> was bound as a descriptor on attribute access, and a proxy for a class defining <code>__await__()</code> or <code>__iter__()</code> was reported as awaitable or iterable by <code>inspect.isawaitable()</code> and <code>collections.abc</code> checks, even though the class itself was not. Special methods provided by the metaclass of a wrapped class, such as <code>__iter__()</code>, were not added to the proxy class. When the wrapped object was an instance, instance attributes shadowing the dunder names were treated as special methods of the wrapped object, and special methods which a <code>__dir__()</code> method of the wrapped object did not report were missed. The special methods are now always determined from the type of the wrapped object, so a proxy behaves the same as the object it wraps. This also covers a <code>wrapt.LazyObjectProxy</code> whose factory returns an object, as resolving the wrapped object reassigns <code>__wrapped__</code>. With thanks to ybai08 for <code>pull request [#361](GrahamDumpleton/wrapt#361) <https://github.com/GrahamDumpleton/wrapt/pull/361></code>_ which identified the issue.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/c82d75db55f9d10cc5b4ba7ba6d267780fcacedd"><code>c82d75d</code></a> Merge branch 'hotfix/2.5.2'</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/522e8ccbb6e166baf10b72c56696c8c0d8594df3"><code>522e8cc</code></a> Pin the remaining CI jobs to ubuntu-24.04 so the whole pipeline uses the same...</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/bdce62fc4509399d4016d3ef5612048c009dcbd5"><code>bdce62f</code></a> Merge branch 'hotfix/2.5.2'</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/13218c60680e60a35a0201312cc13158e9be71a6"><code>13218c6</code></a> Pin Linux CI test jobs to ubuntu-24.04 as ubuntu-latest moved to 26.04.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/c452d1976009aec78a44d57262d2bde97b0359e6"><code>c452d19</code></a> Merge branch 'release/2.5.2'</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/c4b9a1034195d1e85d1fcbdeb288927c8d3f0a85"><code>c4b9a10</code></a> Drop the release candidate suffix for the 2.5.2 release.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/6b4e844950213118b19e613248d2bc9469eb731e"><code>6b4e844</code></a> Drop end of life PyPy 3.9 from the CI test matrix.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/8dcd47a401c47f71ed6e52b6c6697b28a398aa84"><code>8dcd47a</code></a> Determine auto proxy special methods from the type of the wrapped object.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/f72bbdebee38825f8d1b3eb98f31684bd4a4dc37"><code>f72bbde</code></a> Update to 2.5.2rc1.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/b521fe63070a43697de682d54b797927e8f6b399"><code>b521fe6</code></a> Merge tag '2.5.1' into develop</li> <li>See full diff in <a href="https://github.com/GrahamDumpleton/wrapt/compare/2.5.1...2.5.2">compare view</a></li> </ul> </details> <br /> [](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>
…es (#799) Bumps the python-packages group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [pydantic](https://github.com/pydantic/pydantic) | `2.14.1` | `2.14.2` | | [wrapt](https://github.com/GrahamDumpleton/wrapt) | `2.5.1` | `2.5.2` | | [arize-phoenix-client](https://github.com/Arize-ai/phoenix) | `3.5.0` | `3.6.0` | | [huggingface-hub](https://github.com/huggingface/huggingface_hub) | `2.3.0` | `2.4.0` | | [langsmith](https://github.com/langchain-ai/langsmith-python) | `0.14.14` | `0.14.16` | | [pandas-stubs](https://github.com/pandas-dev/pandas-stubs) | `3.0.5.260914` | `3.1.0.261029` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.20260906` | `6.0.12.20261030` | | [quarto-cli](https://github.com/quarto-dev/quarto-cli) | `1.10.19` | `1.10.20` | Updates `pydantic` from 2.14.1 to 2.14.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/releases">pydantic's releases</a>.</em></p> <blockquote> <h2>v2.14.2 2026-10-29</h2> <h2>v2.14.2 (2026-10-29)</h2> <p>This release addresses 2 security issues, <a href="https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25">https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25</a> and <a href="https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29">https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29</a>.</p> <h4>Packaging</h4> <ul> <li>Bump PyO3 to 0.30.1, jiter to 0.18.0, use <code>PyFrozenDict</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14003">#14003</a></li> <li>Bump speedate to v0.18.0 by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14007">#14007</a></li> <li>Publish <code>pydantic-core</code> wheels for PyPy 8.0 (<code>pp80</code> ABI) by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14083">#14083</a></li> </ul> <h4>Performance</h4> <ul> <li>Avoid Python tuple allocation during model fields validation by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13955">#13955</a></li> <li>Lazily call repr of values during nested union serialization by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14082">#14082</a></li> <li>Skip decorator field checks when no field decorators exist by <a href="https://github.com/alexmojaki"><code>@alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14111">#14111</a></li> <li>Avoid heap allocation for small JSON model field buffers by <a href="https://github.com/alexmojaki"><code>@alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14113">#14113</a></li> </ul> <h4>Fixes</h4> <ul> <li> <p>Make JSON validation by iteration consistent with Python approach by <a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13275">#13275</a>.</p> <p>JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an unused alias or field name are now treated as extra data, instead of being silently dropped:</p> <pre lang="python"><code>from pydantic import BaseModel, ConfigDict from pydantic.alias_generators import to_camel <p>class Page(BaseModel):<br /> model_config = ConfigDict(extra='forbid', alias_generator=to_camel)</p> <pre><code>page_size: int = 10 </code></pre> <p>Page.model_validate_json('{"page_size": 50}')</p> <h1>Before: Page(page_size=10)</h1> <h1>After: ValidationError (extra_forbidden)</h1> <p></code></pre></p> <p>See the <a href="https://redirect.github.com/pydantic/pydantic/pull/13275">pull request</a> for the full list of behavior changes. This change addresses <a href="https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25">https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25</a>.</p> </li> <li> <p>Ignore extra data matching a field name in <code>TypedDict</code> and dataclasses with <code>extra=allow</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14090">#14090</a>. Addresses <a href="https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29">https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29</a>.</p> </li> <li> <p>Fix unpickling of generic classes defined in separate module by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13994">#13994</a></p> </li> <li> <p>Support explicit <code>by_alias</code> overriding <code>validate_by_alias</code> in validation JSON schemas by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13997">#13997</a></p> </li> <li> <p>Fix mypy plugin crash on deferred empty model by <a href="https://github.com/ilevkivskyi"><code>@ilevkivskyi</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14027">#14027</a></p> </li> <li> <p>Fix infinite recursion when validating an invalid default with <code>PydanticUseDefault</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14028">#14028</a></p> </li> <li> <p>Implement recursion guard for <code>validate_strings()</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14029">#14029</a></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/blob/v2.14.2/HISTORY.md">pydantic's changelog</a>.</em></p> <blockquote> <h2>v2.14.2 (2026-10-29)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.14.2">GitHub release</a></p> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>Bump PyO3 to 0.30.1, jiter to 0.18.0, use <code>PyFrozenDict</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14003">#14003</a></li> <li>Bump speedate to v0.18.0 by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14007">#14007</a></li> <li>Publish <code>pydantic-core</code> wheels for PyPy 8.0 (<code>pp80</code> ABI) by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14083">#14083</a></li> </ul> <h4>Performance</h4> <ul> <li>Avoid Python tuple allocation during model fields validation by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13955">#13955</a></li> <li>Lazily call repr of values during nested union serialization by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14082">#14082</a></li> <li>Skip decorator field checks when no field decorators exist by <a href="https://github.com/alexmojaki"><code>@alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14111">#14111</a></li> <li>Avoid heap allocation for small JSON model field buffers by <a href="https://github.com/alexmojaki"><code>@alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14113">#14113</a></li> </ul> <h4>Fixes</h4> <ul> <li> <p>Make JSON validation by iteration consistent with Python approach by <a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13275">#13275</a>.</p> <p>JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an unused alias or field name are now treated as extra data, instead of being silently dropped:</p> <pre lang="python"><code>from pydantic import BaseModel, ConfigDict from pydantic.alias_generators import to_camel <p>class Page(BaseModel):<br /> model_config = ConfigDict(extra='forbid', alias_generator=to_camel)</p> <pre><code>page_size: int = 10 </code></pre> <p>Page.model_validate_json('{"page_size": 50}')</p> <h1>Before: Page(page_size=10)</h1> <h1>After: ValidationError (extra_forbidden)</h1> <p></code></pre></p> <p>See the <a href="https://redirect.github.com/pydantic/pydantic/pull/13275">pull request</a> for the full list of behavior changes.</p> </li> <li> <p>Fix unpickling of generic classes defined in separate module by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13994">#13994</a></p> </li> <li> <p>Support explicit <code>by_alias</code> overriding <code>validate_by_alias</code> in validation JSON schemas by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/13997">#13997</a></p> </li> <li> <p>Fix mypy plugin crash on deferred empty model by <a href="https://github.com/ilevkivskyi"><code>@ilevkivskyi</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14027">#14027</a></p> </li> <li> <p>Fix infinite recursion when validating an invalid default with <code>PydanticUseDefault</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14028">#14028</a></p> </li> <li> <p>Implement recursion guard for <code>validate_strings()</code> by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14029">#14029</a></p> </li> <li> <p>Support named tuples in <code>Sequence</code> serialization by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/14033">#14033</a></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pydantic/pydantic/commit/aa540acc29960fb394312cf97d888c99f9686814"><code>aa540ac</code></a> Update changelog for v2.14.2</li> <li><a href="https://github.com/pydantic/pydantic/commit/6cde12fa3e08201193bac8330c84dbe19cc825c8"><code>6cde12f</code></a> Update changelog for v2.14.2</li> <li><a href="https://github.com/pydantic/pydantic/commit/2db7c25776c2ede3cccc9eca84024f2245ba1571"><code>2db7c25</code></a> Fix deep copy of self-referential models</li> <li><a href="https://github.com/pydantic/pydantic/commit/d783154a3922871a49dda2de88856f445a58bc35"><code>d783154</code></a> Update changelog for v2.14.2</li> <li><a href="https://github.com/pydantic/pydantic/commit/df49b6cff91a7e0d4ae8c001e77b8b9f0eec312b"><code>df49b6c</code></a> Avoid heap allocation for small JSON model field buffers</li> <li><a href="https://github.com/pydantic/pydantic/commit/cd93e699ad7f38be3ec95712b0e2cba2d037b62f"><code>cd93e69</code></a> Skip decorator field checks when no field decorators exist</li> <li><a href="https://github.com/pydantic/pydantic/commit/2771e57c39e660471f208908c0b856fb65435165"><code>2771e57</code></a> Make JSON validation by iteration consistent with Python approach</li> <li><a href="https://github.com/pydantic/pydantic/commit/8102e3f16712dbe3109859de1610d9308ea8027f"><code>8102e3f</code></a> Avoid Python tuple allocation during model fields validation</li> <li><a href="https://github.com/pydantic/pydantic/commit/dd139b5ddc2fbbb63cb1a178104d35f5076ef550"><code>dd139b5</code></a> Bump <code>pydantic.v1</code> namespace to v1.10.27</li> <li><a href="https://github.com/pydantic/pydantic/commit/66155f9965ef6ad19b2ddb29546644b321d069c9"><code>66155f9</code></a> Prepare release v2.14.2</li> <li>Additional commits viewable in <a href="https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2">compare view</a></li> </ul> </details> <br /> Updates `wrapt` from 2.5.1 to 2.5.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/GrahamDumpleton/wrapt/releases">wrapt's releases</a>.</em></p> <blockquote> <h2>wrapt 2.5.2</h2> <p>Full release notes: <a href="https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2">https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2</a></p> <p>Install from PyPi (recommended):</p> <pre><code>pip install wrapt==2.5.2 </code></pre> <p>PyPi uploads follow each GitHub release; if <code>pip</code> reports the version is unavailable, the matching PyPi upload may not have happened yet.</p> <p>Pre-built wheels are provided for a range of Python versions and platforms (Linux x86_64/aarch64/riscv64, macOS x86_64 and arm64, Windows x86_64 and arm64, plus PyPy and free-threaded builds). The source distribution is also attached together with <code>SHA256SUMS</code> for verification.</p> <h2>wrapt 2.5.2rc1</h2> <p>Release candidate. Release notes for the upcoming 2.5.2 final (work in progress): <a href="https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2">https://wrapt.readthedocs.io/en/latest/changes.html#version-2-5-2</a></p> <p>May be installable from PyPi:</p> <pre><code>pip install wrapt==2.5.2rc1 </code></pre> <p>If <code>pip</code> reports the version is unavailable, this candidate either has not been uploaded yet or is not being published to PyPi. Use the attached wheels or build from the source distribution instead:</p> <pre><code>tar xf wrapt-2.5.2rc1.tar.gz cd wrapt-2.5.2rc1 pip install . </code></pre> <p><code>SHA256SUMS</code> is attached for verification of the archives.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/GrahamDumpleton/wrapt/blob/develop/docs/changes.rst">wrapt's changelog</a>.</em></p> <blockquote> <h2>Version 2.5.2</h2> <p><strong>Bugs Fixed</strong></p> <ul> <li>The special methods added to the class generated for an <code>wrapt.AutoObjectProxy</code>, and adjusted when <code>__wrapped__</code> was reassigned, were determined by inspecting the wrapped object itself, rather than the type of the wrapped object. As special methods are only ever looked up on the type of an object, this gave the wrong result in several cases. When the wrapped object was a class, the special methods it defined for its instances were added to the proxy class, so a proxy for a class defining <code>__set_name__()</code> raised <code>TypeError</code> when assigned to an attribute in a class body, a proxy for a class defining <code>__get__()</code> was bound as a descriptor on attribute access, and a proxy for a class defining <code>__await__()</code> or <code>__iter__()</code> was reported as awaitable or iterable by <code>inspect.isawaitable()</code> and <code>collections.abc</code> checks, even though the class itself was not. Special methods provided by the metaclass of a wrapped class, such as <code>__iter__()</code>, were not added to the proxy class. When the wrapped object was an instance, instance attributes shadowing the dunder names were treated as special methods of the wrapped object, and special methods which a <code>__dir__()</code> method of the wrapped object did not report were missed. The special methods are now always determined from the type of the wrapped object, so a proxy behaves the same as the object it wraps. This also covers a <code>wrapt.LazyObjectProxy</code> whose factory returns an object, as resolving the wrapped object reassigns <code>__wrapped__</code>. With thanks to ybai08 for <code>pull request [#361](https://github.com/GrahamDumpleton/wrapt/issues/361) <https://github.com/GrahamDumpleton/wrapt/pull/361></code>_ which identified the issue.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/c82d75db55f9d10cc5b4ba7ba6d267780fcacedd"><code>c82d75d</code></a> Merge branch 'hotfix/2.5.2'</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/522e8ccbb6e166baf10b72c56696c8c0d8594df3"><code>522e8cc</code></a> Pin the remaining CI jobs to ubuntu-24.04 so the whole pipeline uses the same...</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/bdce62fc4509399d4016d3ef5612048c009dcbd5"><code>bdce62f</code></a> Merge branch 'hotfix/2.5.2'</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/13218c60680e60a35a0201312cc13158e9be71a6"><code>13218c6</code></a> Pin Linux CI test jobs to ubuntu-24.04 as ubuntu-latest moved to 26.04.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/c452d1976009aec78a44d57262d2bde97b0359e6"><code>c452d19</code></a> Merge branch 'release/2.5.2'</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/c4b9a1034195d1e85d1fcbdeb288927c8d3f0a85"><code>c4b9a10</code></a> Drop the release candidate suffix for the 2.5.2 release.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/6b4e844950213118b19e613248d2bc9469eb731e"><code>6b4e844</code></a> Drop end of life PyPy 3.9 from the CI test matrix.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/8dcd47a401c47f71ed6e52b6c6697b28a398aa84"><code>8dcd47a</code></a> Determine auto proxy special methods from the type of the wrapped object.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/f72bbdebee38825f8d1b3eb98f31684bd4a4dc37"><code>f72bbde</code></a> Update to 2.5.2rc1.</li> <li><a href="https://github.com/GrahamDumpleton/wrapt/commit/b521fe63070a43697de682d54b797927e8f6b399"><code>b521fe6</code></a> Merge tag '2.5.1' into develop</li> <li>See full diff in <a href="https://github.com/GrahamDumpleton/wrapt/compare/2.5.1...2.5.2">compare view</a></li> </ul> </details> <br /> Updates `arize-phoenix-client` from 3.5.0 to 3.6.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Arize-ai/phoenix/releases">arize-phoenix-client's releases</a>.</em></p> <blockquote> <h2>arize-phoenix-client: v3.6.0</h2> <h2><a href="https://github.com/Arize-ai/phoenix/compare/arize-phoenix-client-v3.5.0...arize-phoenix-client-v3.6.0">3.6.0</a> (2026-10-30)</h2> <h3>Features</h3> <ul> <li><strong>annotations:</strong> add DECISION and AGENT kinds (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17306">#17306</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/9e7a7976eb455d1047a5290b7f2ba2b3a3a677a9">9e7a797</a>)</li> <li><strong>api:</strong> expose prompt version creation timestamps (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17188">#17188</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/87a9934710ad232b238ad27ceefe07a703197bd1">87a9934</a>)</li> <li><strong>client:</strong> expose trace and session filter expressions (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16078">#16078</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/dab09f17b0ac80357e27888b083766559fe45f8b">dab09f1</a>)</li> <li><strong>client:</strong> sort get_spans by start_time (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16386">#16386</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/9f44910e0447fa0cee0caf8b4904b4d6d497ed93">9f44910</a>)</li> <li><strong>harbor:</strong> prompt hill-climb task on a text-to-SQL dataset (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16458">#16458</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/bd78550e3ec698fc57b7640a195223114605b909">bd78550</a>)</li> <li>load optional Harbor task reference outputs (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16656">#16656</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/7556cee07aa7ec4272ddb88ef9a6dc5a3105249d">7556cee</a>)</li> <li>record Harbor agent responses as run output (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16645">#16645</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/c739243e9676450ed0bc01536831918c9f93f852">c739243</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>client:</strong> format string system messages in anthropic adapter (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16316">#16316</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/435de9b7eb38d552c2be6c812691ac4e059b63cf">435de9b</a>)</li> <li><strong>client:</strong> handle the between_tools thinking type in the anthropic helper (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16725">#16725</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/bcec2c5e0a16567557213a95a2af93c1a3f6bf3e">bcec2c5</a>)</li> <li><strong>client:</strong> keep a label of 0 when logging annotation dataframes (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17208">#17208</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/f74341ff0f7f806bc474b37e8ce9e684bab3a0f1">f74341f</a>)</li> <li><strong>client:</strong> keep tools when anthropic tool_choice is none (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16535">#16535</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/8ce05ecd5342a8665891eddd13b01f4d1afa68b0">8ce05ec</a>)</li> <li><strong>client:</strong> normalize IPv6 PHOENIX_HOST values into valid URLs (<a href="https://github.com/Arize-ai/phoenix/commit/0a2583ffd96158caf6735442958f63bae5a2a6c2">0a2583f</a>)</li> <li><strong>client:</strong> omit missing annotation dataframe cells (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16593">#16593</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/b438233ce47db6fd94c77674ca37bbf51413eb8b">b438233</a>)</li> <li><strong>client:</strong> preserve Anthropic prompt extra_body (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17270">#17270</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/deb0731a4606b77c786d86953301ecca39916829">deb0731</a>)</li> <li><strong>client:</strong> preserve JSON string span attribute filters (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17295">#17295</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/057de0098aba65b95bc18a540bbc6b2e65a370ae">057de00</a>)</li> <li><strong>client:</strong> reject anchored Harbor reference paths on Windows (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16884">#16884</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/34f73f977e168d890fa20fb6d16f406a294c7d3d">34f73f9</a>)</li> <li><strong>client:</strong> return empty list from Sessions.list when limit <= 0 (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17074">#17074</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/e554217fb39fbc05b6732462dc57371ca64b5e6e">e554217</a>)</li> <li><strong>client:</strong> treat developer role as system for Anthropic and Google prompt formatting (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17320">#17320</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/4e93c4b5a1d48b8ea3e5b7d7760c89399d1a2bc4">4e93c4b</a>)</li> <li><strong>deps:</strong> require certifi 2026.10.18 to distrust the compromised emSign root (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17093">#17093</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/9056a4a297476c646cfc6ed6851c1fcd96440674">9056a4a</a>)</li> <li><strong>evals:</strong> retry RateLimitError in SyncExecutor instead of failing the whole run (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16376">#16376</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/56e9a8994e9074eb9958dfe77e4552e7a8b6d38c">56e9a89</a>)</li> <li><strong>otel, client, config:</strong> parse .env.phoenix the same way in Python and TypeScript (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17075">#17075</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/67cc379f25062fa42f0d7d7f845f1fe9719116ba">67cc379</a>), closes <a href="https://redirect.github.com/Arize-ai/phoenix/issues/17048">#17048</a></li> <li>stop dropping evaluator metadata nested under <code>result</code> (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16902">#16902</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/d927595cb8ee91aacdb7af8fff3fca1d095cf2eb">d927595</a>)</li> </ul> <h3>Documentation</h3> <ul> <li><strong>client:</strong> drop the phantom concurrency param from evaluate_experiment (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16268">#16268</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/6f03f903b8d3eddffe11e6b695c1c24e244f946a">6f03f90</a>)</li> <li>close gaps from the 2026-09-23 docs gap audit (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17193">#17193</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/e62d1bb312655b8d4e2d14b3f1bb7c0087f24d4d">e62d1bb</a>)</li> <li>fix dead Read the Docs links (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16967">#16967</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/0fed1f431c65cf24f52ca8153d5ffd63ce04a1b2">0fed1f4</a>)</li> <li>index notebooks and remove unreferenced examples (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16370">#16370</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/04996d268630734d70a3a9e44e47dc3921eeed95">04996d2</a>)</li> <li>remove contribute, environments, and non-competitive FAQ pages (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17423">#17423</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/843bfc7c333e81907c6d96bf8f7ee9e786c84d6f">843bfc7</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Arize-ai/phoenix/blob/main/CHANGELOG.md">arize-phoenix-client's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/Arize-ai/phoenix/compare/arize-phoenix-v13.5.0...arize-phoenix-v13.6.0">13.6.0</a> (2026-03-02)</h2> <h3>Features</h3> <ul> <li><strong>app:</strong> add inline document annotation UI for retriever spans (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11688">#11688</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/54fc2870ca8c24a276de1afa51ae8b86cccc370e">54fc287</a>)</li> <li><strong>cli:</strong> add sessions and session commands for multi-turn conversation support (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11795">#11795</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/bd85bcef5ba32f87937e0f58e3650b2b67fd51b9">bd85bce</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>js:</strong> add tabIndex to TokenCount/TokenCosts Pressable call sites (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11812">#11812</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/91b01c24b30f004ae42d8fa2eb273cfc9844e8f0">91b01c2</a>)</li> <li><strong>js:</strong> bump minimatch to >=10.2.3 to fix ReDoS vulnerabilities (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11808">#11808</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/351435389d6723ea6f5ee291c256198b44445ddd">3514353</a>)</li> <li><strong>packaging:</strong> include bundled UI assets in release wheels (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11816">#11816</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/c93179ceef8698de76bd0cd26d36777d40cd1447">c93179c</a>)</li> <li><strong>security:</strong> address multiple dependency vulnerabilities (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11810">#11810</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/cdc56ff02e41780b30fd4f2465d845937a383e85">cdc56ff</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>add tool response handling metric (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11790">#11790</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/49626162f6467afe355c177bb205d423d688ce1c">4962616</a>)</li> <li>CLI 0.7.0 release notes and Sessions REST API reference (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11796">#11796</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/5b370efd4c7cbcec616d3004e9ada446d83418b5">5b370ef</a>)</li> <li><strong>evals:</strong> evaluation docs reorg (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/11758">#11758</a>) (<a href="https://github.com/Arize-ai/phoenix/commit/071f4148d588ef0df05966f0eb3ffad5774e15cd">071f414</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Arize-ai/phoenix/commit/a30fc7e9f4da37e200301f435e3cdfa8ba4ca524"><code>a30fc7e</code></a> chore(main): release arize-phoenix-client 3.6.0 (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/16014">#16014</a>)</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/9486ebc0483b3f0326be161df9eeb67ea3da60a4"><code>9486ebc</code></a> chore: update phoenix version to 21.0.0 in kustomize and helm (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17436">#17436</a>)</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/493a0ff36c56026e543b3ac87438b70a0373ab9a"><code>493a0ff</code></a> chore(js): update versions (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17434">#17434</a>)</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/6359d6388815d56f7795a3a8cd11e89a71793e01"><code>6359d63</code></a> chore(main): release arize-phoenix 21.0.0 (<a href="https://redirect.github.com/Arize-ai/phoenix/issues/17422">#17422</a>)</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/4953903f2b44c90a6932fe7c4dad68e06997a1eb"><code>4953903</code></a> docs: clarify facilitator bootstrap comments</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/f9df18f5544600eab32b0a3af0664517e5129fe8"><code>f9df18f</code></a> docs: streamline v21 migration guidance</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/208999a0d3100fe379d5bf603437cbf1db78aca7"><code>208999a</code></a> fix(ci): key workflow concurrency groups on github.ref instead of github.head...</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/28b1ec3bbcfac8e2845e54c3bcef5d5e5bbe071c"><code>28b1ec3</code></a> fix(docker): move devops images off Debian 11</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/a3cb270c6cbf205407dec0a5fef5f65c905d79e5"><code>a3cb270</code></a> fix(auth): reject a bad deployment seed without assert</li> <li><a href="https://github.com/Arize-ai/phoenix/commit/2745abb07192d6f4a0aa914258b5b72191fed48d"><code>2745abb</code></a> fix(cost-tracking): keep generated_at strictly increasing</li> <li>Additional commits viewable in <a href="https://github.com/Arize-ai/phoenix/compare/arize-phoenix-client-v3.5.0...arize-phoenix-client-v3.6.0">compare view</a></li> </ul> </details> <br /> Updates `huggingface-hub` from 2.3.0 to 2.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/huggingface/huggingface_hub/releases">huggingface-hub's releases</a>.</em></p> <blockquote> <h2>[v2.4.0] Copy files into Buckets with <code>HfFileSystem</code>, outdated CLI extension hints</h2> <h2>🪣 Copy files into Buckets with <code>HfFileSystem</code></h2> <p><code>HfFileSystem</code> raised <code>NotImplementedError</code> on any copy involving a Bucket. Copying into a Bucket now works from the same Bucket, from another Bucket, or from a model, dataset or Space repo. Files stored with Xet are copied on the Hub by hash, so nothing is downloaded. Other repo files are downloaded and then uploaded to the Bucket. fsspec moves a file by copying it and deleting the source, so <code>mv</code> and <code>rename</code> now work inside a Bucket too.</p> <pre lang="python"><code>>>> from huggingface_hub import hffs >>> hffs.cp_file("buckets/my-username/my-bucket/data/train.csv", "buckets/my-username/my-bucket/backup/train.csv") >>> hffs.mv("buckets/my-username/my-bucket/data/tmp.csv", "buckets/my-username/my-bucket/data/final.csv") >>> hffs.copy("buckets/my-username/my-bucket/data", "buckets/my-username/other-bucket/data", recursive=True) >>> hffs.cp_file("datasets/my-username/my-dataset/train.parquet", "buckets/my-username/my-bucket/train.parquet") </code></pre> <p>Copying from a Bucket to a repo is not supported yet.</p> <ul> <li>[HfFileSystem] Support same-bucket file copies by <a href="https://github.com/ankitkumartiwari-web"><code>@ankitkumartiwari-web</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5080">#5080</a></li> </ul> <h2>🧩 See when a CLI extension is outdated</h2> <p><code>hf extensions list</code> only showed when each extension was installed, so there was no way to know that an update was available. It now has a <code>VERSION</code> column (the commit the extension was installed from) and a <code>LATEST</code> column, plus a hint naming the outdated extensions. Running an outdated extension also prints a hint, at most once a day. To stay within GitHub's rate limits, <code>hf</code> looks up the latest commit of each extension at most once a day. Set <code>HF_HUB_DISABLE_UPDATE_CHECK=1</code> to turn these checks off.</p> <!-- raw HTML omitted --> <p><code>hf extensions update</code> also repairs Python extensions that no longer start. After a Homebrew upgrade removed the Python an extension was installed with, running it failed with <code>dyld: Library not loaded</code>, and <code>hf extensions update</code> said it was already up to date. It now recreates the extension's virtual environment when its Python doesn't start, even if no newer commit exists.</p> <pre lang="console"><code>$ hf extensions update speedtest Creating virtualenv at: ~/.local/share/hf/extensions/hf-speedtest/venv ✓ Extension updated </code></pre> <ul> <li>[CLI] Show extension versions and hint when one is outdated by <a href="https://github.com/hanouticelina"><code>@hanouticelina</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5269">#5269</a></li> <li>[CLI] Make hf extensions update repair broken Python extensions by <a href="https://github.com/hanouticelina"><code>@hanouticelina</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5270">#5270</a></li> </ul> <h2>🔧 Other QoL improvements</h2> <ul> <li>Add auth hint to HfFileSystem "repository not found" error by <a href="https://github.com/davanstrien"><code>@davanstrien</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5258">#5258</a>. A private repo accessed without a token gave the same <code>(repository not found)</code> error as a typo in the repo name. The error now also tells you to check that you are authenticated.</li> </ul> <h2>🐛 Bug and typo fixes</h2> <ul> <li>[Webhooks] Use "discussion" domain and default to all domains by <a href="https://github.com/hanouticelina"><code>@hanouticelina</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5263">#5263</a>. <code>hf webhooks create</code> failed unless you passed <code>--domain repo</code>, and watching discussions was not possible because the accepted value was <code>discussions</code> instead of <code>discussion</code>. <code>create_webhook</code> now watches both domains when <code>domains</code> is omitted.</li> <li>Validate filename against path traversal in try_to_load_from_cache by <a href="https://github.com/bodapatisaikrishna"><code>@bodapatisaikrishna</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5249">#5249</a>. Filenames with <code>../</code> or absolute paths could resolve outside the cache folder. They are now rejected, as in <code>hf_hub_download</code>.</li> <li>[HfFileSystem] Return file info from find(detail=True) on a file path by <a href="https://github.com/ontdepart"><code>@ontdepart</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5246">#5246</a>. It returned an empty dict, which broke datatrove readers pointing at a single <code>hf://</code> file.</li> <li>[Cache] Skip local-dir metadata when verifying checksums by <a href="https://github.com/alphasafal"><code>@alphasafal</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5257">#5257</a>. <code>hf cache verify --local-dir</code> reported the <code>.cache/huggingface/</code> metadata as extra files, so <code>--fail-on-extra-files</code> failed on every clean download.</li> <li>[CLI] Don't crash hf cache verify on Windows redirected stdout by <a href="https://github.com/Sonica-B"><code>@Sonica-B</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5255">#5255</a>. When output was piped or redirected, <code>hf cache verify</code> crashed with <code>UnicodeEncodeError</code> instead of listing the files that failed verification.</li> </ul> <h2>📖 Documentation</h2> <ul> <li>[Docs] Fix docstring examples that fail when copy-pasted by <a href="https://github.com/tkr109"><code>@tkr109</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5238">#5238</a></li> <li>[Docs] Await endpoint batch inference before pausing by <a href="https://github.com/emrehangorgec"><code>@emrehangorgec</code></a> in <a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5247">#5247</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/huggingface/huggingface_hub/commit/3739729b86489e4ae28b5a62e622be320b141493"><code>3739729</code></a> Release: v2.4.0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/454824db12893db152aa27f1df4df36a8fe60259"><code>454824d</code></a> Release: v2.4.0.rc0</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/178e1a1797858724c79fd9d12d79d0902d730497"><code>178e1a1</code></a> [HfFileSystem] Support same-bucket file copies (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5080">#5080</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/db254a305a29370d2e08859000d0d40c2897c8db"><code>db254a3</code></a> Docs: build English only, other languages are machine-translated (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5276">#5276</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/4a993357d524028204216b4307ed4d97b8111818"><code>4a99335</code></a> Bump the actions group with 7 updates (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5268">#5268</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/70de21cf3bdebb37151a6f5bcf217594d24e175f"><code>70de21c</code></a> [CLI] Make hf extensions update repair broken Python extensions (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5270">#5270</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/b763f1331e14c11e4e4776ffb3f46640c0c3f207"><code>b763f13</code></a> [CLI] Show extension versions and hint when one is outdated (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5269">#5269</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/a43cbe33148ae6f7ca27568922c1968b69e822d8"><code>a43cbe3</code></a> [Webhooks] Use "discussion" domain and default to all domains (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5263">#5263</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/e255f041d588538d4a1bd9294eafdaf57311862f"><code>e255f04</code></a> [Cache] Skip local-dir metadata when verifying checksums (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5257">#5257</a>)</li> <li><a href="https://github.com/huggingface/huggingface_hub/commit/289492b307df52ae24c72a3180866b791c9672ba"><code>289492b</code></a> [CI] Drop urllib3<2.0 test pin broken by vcrpy 9 (<a href="https://redirect.github.com/huggingface/huggingface_hub/issues/5262">#5262</a>)</li> <li>Additional commits viewable in <a href="https://github.com/huggingface/huggingface_hub/compare/v2.3.0...v2.4.0">compare view</a></li> </ul> </details> <br /> Updates `langsmith` from 0.14.14 to 0.14.16 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/langchain-ai/langsmith-python/releases">langsmith's releases</a>.</em></p> <blockquote> <h2>v0.14.16</h2> <h2><a href="https://github.com/langchain-ai/langsmith-python/compare/v0.14.15...v0.14.16">0.14.16</a> (2026-10-29)</h2> <h3>Features</h3> <ul> <li><strong>py:</strong> trace OpenAI Agents API sessions in wrap_openai (<a href="https://github.com/langchain-ai/langsmith-python/commit/dac7037c898ee39ea605ca47c8831d2653c06f0b">dac7037</a>)</li> <li><strong>sdks:</strong> add create_decision_model to the generated SDKs (<a href="https://github.com/langchain-ai/langsmith-python/commit/61afde1097584e69578330b97517b836975b942d">61afde1</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>sdk:</strong> drop the base workspace for write replicas on another instance (<a href="https://github.com/langchain-ai/langsmith-python/commit/1a255bb0bbae6cbaba0f6e1a39baabc437929b7e">1a255bb</a>)</li> </ul> <h3>Reverts</h3> <ul> <li>provision disposable Engine sandboxes (<a href="https://github.com/langchain-ai/langsmith-python/commit/d3a4a2c4ca6413ffaea91e2d27eee5d32b29e49f">d3a4a2c</a>)</li> </ul> <h2>v0.14.15</h2> <h2><a href="https://github.com/langchain-ai/langsmith-python/compare/v0.14.14...v0.14.15">0.14.15</a> (2026-10-29)</h2> <h3>Features</h3> <ul> <li>add HTTPS destination rewrite rules for sandboxes (<a href="https://github.com/langchain-ai/langsmith-python/commit/3e27a3a405300aaca73df109c6fe900bb17a094c">3e27a3a</a>)</li> <li><strong>annotation-queues:</strong> rubric item required_if and visible_if conditions (<a href="https://github.com/langchain-ai/langsmith-python/commit/7af99d4f24ba8ba1ed4aea5a184b7d77f7499bc2">7af99d4</a>)</li> <li><strong>feedback:</strong> add allows_multiple_categories flag to categorical feedback configs (<a href="https://github.com/langchain-ai/langsmith-python/commit/ae2d72fb3b965f97c48865ff2400b485ec9abfe4">ae2d72f</a>)</li> <li><strong>sandboxes:</strong> allow non-persistent mode for all tenants (<a href="https://github.com/langchain-ai/langsmith-python/commit/8ff01441a9f07e1ced19451c32b47d962ae16336">8ff0144</a>)</li> <li><strong>sandboxes:</strong> show granular usage instead of dollar estimates (<a href="https://github.com/langchain-ai/langsmith-python/commit/8b481128795c22581e1d3612251507ab939376d1">8b48112</a>)</li> <li><strong>sdk-py:</strong> support CLI profile selection and preferred profile auth (<a href="https://github.com/langchain-ai/langsmith-python/commit/331fec0ccdbe7326784d053160ff25f920798d10">331fec0</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>ci:</strong> keep Co-authored-by trailers in SDK exports (<a href="https://github.com/langchain-ai/langsmith-python/commit/1702d37a9ede32578ea24944596afb9eb2284010">1702d37</a>)</li> <li><strong>sandboxes:</strong> cap non-persistent sandbox disk at 16 GiB per vCPU (<a href="https://github.com/langchain-ai/langsmith-python/commit/1171a82cd3a8bd277f8e72d76d538cdd07c9696f">1171a82</a>)</li> <li><strong>sandboxes:</strong> retain recorded storage across sampling gaps (<a href="https://github.com/langchain-ai/langsmith-python/commit/9e81d8ee06f628f191b5fdaf153a47aaace122a1">9e81d8e</a>)</li> <li><strong>sdk-py:</strong> show SmithDB migration deprecation warnings by default (<a href="https://github.com/langchain-ai/langsmith-python/commit/acfb5376dbfc4849576f0659024b2d23a1773f26">acfb537</a>)</li> </ul> <h3>Performance Improvements</h3> <ul> <li>provision disposable Engine sandboxes (<a href="https://github.com/langchain-ai/langsmith-python/commit/037ec1d1fc44901aa0a13dcb49ed355459da44a1">037ec1d</a>)</li> </ul> <h3>Chores</h3> <ul> <li><strong>sdks:</strong> regenerate python.patch for tzdata 2026.6 (<a href="https://github.com/langchain-ai/langsmith-python/commit/d0678b8ac40717266a65d225f54902a6d8ecabfd">d0678b8</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/langchain-ai/langsmith-python/blob/main/CHANGELOG.md">langsmith's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/langchain-ai/langsmith-python/compare/v0.14.15...v0.14.16">0.14.16</a> (2026-10-29)</h2> <h3>Features</h3> <ul> <li><strong>py:</strong> trace OpenAI Agents API sessions in wrap_openai (<a href="https://github.com/langchain-ai/langsmith-python/commit/dac7037c898ee39ea605ca47c8831d2653c06f0b">dac7037</a>)</li> <li><strong>sdks:</strong> add create_decision_model to the generated SDKs (<a href="https://github.com/langchain-ai/langsmith-python/commit/61afde1097584e69578330b97517b836975b942d">61afde1</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>sdk:</strong> drop the base workspace for write replicas on another instance (<a href="https://github.com/langchain-ai/langsmith-python/commit/1a255bb0bbae6cbaba0f6e1a39baabc437929b7e">1a255bb</a>)</li> </ul> <h3>Reverts</h3> <ul> <li>provision disposable Engine sandboxes (<a href="https://github.com/langchain-ai/langsmith-python/commit/d3a4a2c4ca6413ffaea91e2d27eee5d32b29e49f">d3a4a2c</a>)</li> </ul> <h2><a href="https://github.com/langchain-ai/langsmith-python/compare/v0.14.14...v0.14.15">0.14.15</a> (2026-10-29)</h2> <h3>Features</h3> <ul> <li>add HTTPS destination rewrite rules for sandboxes (<a href="https://github.com/langchain-ai/langsmith-python/commit/3e27a3a405300aaca73df109c6fe900bb17a094c">3e27a3a</a>)</li> <li><strong>annotation-queues:</strong> rubric item required_if and visible_if conditions (<a href="https://github.com/langchain-ai/langsmith-python/commit/7af99d4f24ba8ba1ed4aea5a184b7d77f7499bc2">7af99d4</a>)</li> <li><strong>feedback:</strong> add allows_multiple_categories flag to categorical feedback configs (<a href="https://github.com/langchain-ai/langsmith-python/commit/ae2d72fb3b965f97c48865ff2400b485ec9abfe4">ae2d72f</a>)</li> <li><strong>sandboxes:</strong> allow non-persistent mode for all tenants (<a href="https://github.com/langchain-ai/langsmith-python/commit/8ff01441a9f07e1ced19451c32b47d962ae16336">8ff0144</a>)</li> <li><strong>sandboxes:</strong> show granular usage instead of dollar estimates (<a href="https://github.com/langchain-ai/langsmith-python/commit/8b481128795c22581e1d3612251507ab939376d1">8b48112</a>)</li> <li><strong>sdk-py:</strong> support CLI profile selection and preferred profile auth (<a href="https://github.com/langchain-ai/langsmith-python/commit/331fec0ccdbe7326784d053160ff25f920798d10">331fec0</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>ci:</strong> keep Co-authored-by trailers in SDK exports (<a href="https://github.com/langchain-ai/langsmith-python/commit/1702d37a9ede32578ea24944596afb9eb2284010">1702d37</a>)</li> <li><strong>sandboxes:</strong> cap non-persistent sandbox disk at 16 GiB per vCPU (<a href="https://github.com/langchain-ai/langsmith-python/commit/1171a82cd3a8bd277f8e72d76d538cdd07c9696f">1171a82</a>)</li> <li><strong>sandboxes:</strong> retain recorded storage across sampling gaps (<a href="https://github.com/langchain-ai/langsmith-python/commit/9e81d8ee06f628f191b5fdaf153a47aaace122a1">9e81d8e</a>)</li> <li><strong>sdk-py:</strong> show SmithDB migration deprecation warnings by default (<a href="https://github.com/langchain-ai/langsmith-python/commit/acfb5376dbfc4849576f0659024b2d23a1773f26">acfb537</a>)</li> </ul> <h3>Performance Improvements</h3> <ul> <li>provision disposable Engine sandboxes (<a href="https://github.com/langchain-ai/langsmith-python/commit/037ec1d1fc44901aa0a13dcb49ed355459da44a1">037ec1d</a>)</li> </ul> <h3>Chores</h3> <ul> <li><strong>sdks:</strong> regenerate python.patch for tzdata 2026.6 (<a href="https://github.com/langchain-ai/langsmith-python/commit/d0678b8ac40717266a65d225f54902a6d8ecabfd">d0678b8</a>)</li> </ul> <h3>Documentation</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/516e1b7f83ad03c728b75644374c868435196ca8"><code>516e1b7</code></a> Merge pull request <a href="https://redirect.github.com/langchain-ai/langsmith-python/issues/84">#84</a> from langchain-ai/release-please--branches--main</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/8e0ec5e2f6cbccc75794381cf35b34417df920b1"><code>8e0ec5e</code></a> release: 0.14.16</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/dac7037c898ee39ea605ca47c8831d2653c06f0b"><code>dac7037</code></a> feat(py): trace OpenAI Agents API sessions in wrap_openai</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/1a255bb0bbae6cbaba0f6e1a39baabc437929b7e"><code>1a255bb</code></a> fix(sdk): drop the base workspace for write replicas on another instance</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/d3a4a2c4ca6413ffaea91e2d27eee5d32b29e49f"><code>d3a4a2c</code></a> revert: provision disposable Engine sandboxes</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/61afde1097584e69578330b97517b836975b942d"><code>61afde1</code></a> feat(sdks): add create_decision_model to the generated SDKs</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/822b6329a03b75e1b6ebd889718c337a759cb7ad"><code>822b632</code></a> Merge pull request <a href="https://redirect.github.com/langchain-ai/langsmith-python/issues/83">#83</a> from langchain-ai/release-please--branches--main</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/46ef000c9178f9ba9c66c9247853e914acc9243f"><code>46ef000</code></a> release: 0.14.15</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/037ec1d1fc44901aa0a13dcb49ed355459da44a1"><code>037ec1d</code></a> perf: provision disposable Engine sandboxes</li> <li><a href="https://github.com/langchain-ai/langsmith-python/commit/acfb5376dbfc4849576f0659024b2d23a1773f26"><code>acfb537</code></a> fix(sdk-py): show SmithDB migration deprecation warnings by default</li> <li>Additional commits viewable in <a href="https://github.com/langchain-ai/langsmith-python/compare/v0.14.14...v0.14.16">compare view</a></li> </ul> </details> <br /> Updates `pandas-stubs` from 3.0.5.260914 to 3.1.0.261029 <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/2a4a9c13ad7efe7a0aea2f04bf263f5ac17b0478"><code>2a4a9c1</code></a> Version 3.1.0.261029</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/9490b6931205c0c9278081b4179dcce52b388c1e"><code>9490b69</code></a> BLD: update to pandas 3.1.0 and adapt stubs and tests (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2036">#2036</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/0bdb3553fa7be05ee668b71670b03035f6828d1f"><code>0bdb355</code></a> TYP: reject complex ordering for Series and Index (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2016">#2016</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/fadb44701939cc072135232321935d69b9952343"><code>fadb447</code></a> TYP: drop the unreachable Series.<strong>rmatmul</strong>(DataFrame) and document operator...</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/f72cd2a5cbb7d23c8252795f613413377a1b6b0c"><code>f72cd2a</code></a> TYP: Remove mode property from BaseBuffer protocol <a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/1956">#1956</a> (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2041">#2041</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/9dccbf57613e9922ede3f070a267e3977485c0bb"><code>9dccbf5</code></a> DOC: require public API status before adding stubs (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2039">#2039</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/e201493b6da0b1487ef85544553c82908f63e3cb"><code>e201493</code></a> TST: use canonical IANA time zones in tests (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2033">#2033</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/8dd6d91b1c05b26e30f7ddbe3dc3d4042a92bdd6"><code>8dd6d91</code></a> TST: 🌙 fix nightly dtype warnings and Index.where test data (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2028">#2028</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/36a22a819a051879acbb9e4c7e4a7062498b3e5e"><code>36a22a8</code></a> TYP: Include missing values in scalar indexer returns (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/1946">#1946</a>)</li> <li><a href="https://github.com/pandas-dev/pandas-stubs/commit/1026204eed42937d0f41f0cff8a155dedb880b0e"><code>1026204</code></a> TYP: accept list bounds in <code>DataFrame.clip</code> (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/2022">#2022</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pandas-dev/pandas-stubs/compare/v3.0.5.260914...v3.1.0.261029">compare view</a></li> </ul> </details> <br /> Updates `types-pyyaml` from 6.0.12.20260906 to 6.0.12.20261030 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> Updates `quarto-cli` from 1.10.19 to 1.10.20 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/quarto-dev/quarto-cli/releases">quarto-cli's releases</a>.</em></p> <blockquote> <h2>v1.10.20</h2> <p><strong>Changelog since last release</strong>: <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.10.19...v1.10.20">https://github.com/quarto-dev/quarto-cli/compare/v1.10.19...v1.10.20</a></p> <p>Full 1.10 changelog up to this version:</p> <ul> <li> <p>View: <a href="https://github.com/quarto-dev/quarto-cli/blob/v1.10.20/news/changelog-1.10.md">https://github.com/quarto-dev/quarto-cli/blob/v1.10.20/news/changelog-1.10.md</a></p> </li> <li> <p>Download: <a href="https://github.com/quarto-dev/quarto-cli/releases/download/v1.10.20/changelog.md">https://github.com/quarto-dev/quarto-cli/releases/download/v1.10.20/changelog.md</a></p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/b414394e1cb8f7fc7b065332ec29d83b6bfb4943"><code>b414394</code></a> Update version.txt</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/8f4600111d44f6e8679084262d82e40b0b6a467a"><code>8f46001</code></a> [backport] Accept (and ignore) static engine declaration keys in the external...</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/2ed1b35a12e346e52e392732c64e9bb090dc8cd1"><code>2ed1b35</code></a> [backport] ci: fall back off a slow Azure apt mirror in smoke tests (<a href="https://redirect.github.com/quarto-dev/quarto-cli/issues/15204">#15204</a>)</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/8a2fa52bab8b18c28437519223f6d40ad5e4fff7"><code>8a2fa52</code></a> Merge pull request <a href="https://redirect.github.com/quarto-dev/quarto-cli/issues/15158">#15158</a> from quarto-dev/backport/15143</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/35f1a6406b350618ad0b456b918ef2d96ae378e7"><code>35f1a64</code></a> [release checklist] Archive shipped v1.10 backports</li> <li>See full diff in <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.10.19...v1.10.20">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eric Patey <eric.patey@gmail.com>
When
AutoObjectProxywraps a class, it decides which special methods to add to its generated class by checkingdir(wrapped). For a class, that lists the methods the class defines for its instances. Python looks special methods up on the type of an object, and the type of a class is its metaclass. So the proxy picks up methods that don't apply to the class it wraps, and misses ones that do.__wrapped_setattr_fixups__()has the same problem throughhasattr(self.__wrapped__, ...), and that path also affects aLazyObjectProxywhose factory returns a class.What goes wrong, compared with using the class directly:
__get__()gets bound as a descriptor on attribute access, so reading the attribute calls the unbound__get__().__iter__()passesisinstance(proxy, collections.abc.Iterable), while the class itself doesn't.__iter__()can be iterated, butlist(AutoObjectProxy(cls))raisesTypeErrorbecause the metaclass method is never added. On Python 3.9 this includesenum.Enumsubclasses, sincedir()of an enum class there doesn't list__iter__.The fix adds a small helper,
_special_method_source(). For a class it returnstype(wrapped), and for anything else it returns the object unchanged.AutoObjectProxy.__new__()and__wrapped_setattr_fixups__()now check that object. Non-class objects take the same path as before, including proxies, whosedir()is forwarded. The__call__check still usescallable()on the wrapped object.LazyObjectProxy.__new__()already checksdir(interface)against a type, so it is unchanged.Tests added:
tests/core/test_auto_object_proxy.py:__await__/__iter__is not reported as awaitable or iterable;__iter__;__wrapped__reassignment.tests/core/test_lazy_object_proxy.py: aLazyObjectProxywhose factory returns a descriptor class, stored in a class body after it has been resolved.I added a change note under a new
Version 2.5.2heading indocs/changes.rst. Please move or retitle it as you see fit.Validation (local, macOS arm64):
hasattr()on a class does reach its metaclass, and it stays in as a guard. After the fix all 51 tests in the two files pass in both modes.just test-versionby hand (just isn't installed here; the venv was kept outside the repo) for Python 3.9, 3.11, 3.12, 3.13 and 3.14. Each version ran pure-Python install, C extension enabled and C extension disabled at runtime, with the pinned mypy, and all 15 runs passed. Python 3.10, 3.14t, 3.15 and 3.15t were not run because those interpreters aren't installed here, so the fulljust testmatrix has not been run.mypy.stubtestwith the allowlist passes for both the C extension and pure Python.black --checkandisort --check-onlypass on the changed files.