dependabot[bot] opened a new pull request, #55817: URL: https://github.com/apache/arrow/pull/55817
Bumps the python-stubs group in /python with 1 update: [ty](https://github.com/astral-sh/ty). Updates `ty` from 0.0.107 to 0.0.109 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ty/releases">ty's releases</a>.</em></p> <blockquote> <h2>0.0.109</h2> <h2>Release Notes</h2> <p>Released on 2026-11-23.</p> <h3>Bug fixes</h3> <ul> <li>Preserve type variables from the surrounding scope when inferring generic calls. For example, forwarding a <code>list[T]</code> through a generic helper can now preserve <code>list[T]</code> as the result type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30423">#30423</a>)</li> <li>Use the receiver’s type to select overloads when a method is called through an alias. For example, an alias of a Redis method can now infer an awaitable return type for an asynchronous client. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29341">#29341</a>)</li> <li>Report <code>unknown-argument</code> when <code>copy.replace</code> or a generated <code>__replace__</code> receives an <code>init=False</code> field. This applies to standard-library and Pydantic dataclasses, attrs classes, and other classes using <code>dataclass_transform</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30850">#30850</a>)</li> <li>Preserve literals when union simplification discards the member that would have made them redundant. This also fixes a crash when checking some unions of recursive protocols. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30774">#30774</a>)</li> <li>Accept <code>self</code> as a field keyword in dataclass and Pydantic constructors and in dataclass and named tuple replacement methods. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29341">#29341</a>)</li> <li>Infer <code>Self</code> from the receiver and field arguments in generated dataclass and named tuple methods, so an inherited method can accept a base-class value for a field annotated with <code>Self</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29341">#29341</a>)</li> </ul> <h3>LSP server</h3> <ul> <li>Speed up member completions when looking up documentation for classes and enums with many attributes, such as Flet’s <code>Icons</code> and PySide6’s <code>Qt.Key</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30707">#30707</a>)</li> </ul> <h3>Diagnostic improvements</h3> <ul> <li>Rename the diagnostic for unknown rules in ignore comments to <code>unknown-rule-in-ignore-comment</code>. The old name, <code>ignore-comment-unknown-rule</code>, remains a compatibility alias in configuration and ignore comments. Run <code>ty check --fix</code> to update ignore comments automatically. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30827">#30827</a>)</li> </ul> <h3>Performance improvements</h3> <h4>Calls and overloads</h4> <ul> <li>Check nested calls such as NumPy’s <code>dot(dot(a, b), c)</code> faster when several outer overloads give the inner call the same expected return type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30785">#30785</a>)</li> <li>Reuse successful inference for ordinary type variables and <code>Self</code> across generic calls with matching parameter and argument types, when there’s no expected return type or unpacked variadic parameter. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30815">#30815</a>)</li> <li>Speed up overload resolution by reusing comparisons of parameter and return types when several overloads match. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30781">#30781</a>)</li> <li>Check whether matching overloads cover all possible arguments faster when consecutive overloads infer the same argument types, as can happen with <code>boto3</code> client calls. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30789">#30789</a>)</li> <li>Speed up repeated calls to overloads that share a type variable, such as <code>TypedDict.get</code> overloads that share the type of the default argument. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30813">#30813</a>)</li> <li>Check calls to ordinary functions faster when many arguments are captured by <code>*args</code> or <code>**kwargs</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30734">#30734</a>)</li> <li>Speed up call inference by avoiding unnecessary copies of inferred argument types, including on the first pass of generic inference. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30826">#30826</a>)</li> </ul> <h4>Generics and recursive types</h4> <ul> <li>Speed up type compatibility checks that must hold for every specialization of a type variable, including assignability and equivalence checks. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30748">#30748</a>)</li> <li>Solve generic type constraints faster by reusing results for pairs of constraints that yield no new information. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30788">#30788</a>)</li> <li>Speed up inference for recursive types whose generic arguments share nested unions. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30735">#30735</a>)</li> <li>Limit alias expansion and cycle checks to aliases and recursive types. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30828">#30828</a>)</li> </ul> <h4>Classes and <code>TypedDict</code>s</h4> <ul> <li>Check assignments to instance attributes faster when repeated assignments give the attribute a wide union type, as in tokenizer state machines. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30775">#30775</a>)</li> <li>Speed up repeated comparisons between <code>TypedDict</code>s and unions, including recursive unions such as Pydantic’s <code>CoreSchema</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30555">#30555</a>)</li> <li>Determine whether a class is abstract faster when its methods use decorators that preserve the method’s type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30802">#30802</a>)</li> <li>Check enums with built-in tuple values faster when using the bundled standard-library stubs. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30777">#30777</a>)</li> <li>Check attribute assignments and deletions faster when the class and its bases are unfrozen. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30820">#30820</a>)</li> <li>Speed up checks for inherited dataclass ordering by looking up decorators only on base classes with ordering enabled. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30810">#30810</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ty/blob/main/CHANGELOG.md">ty's changelog</a>.</em></p> <blockquote> <h2>0.0.109</h2> <p>Released on 2026-11-23.</p> <h3>Bug fixes</h3> <ul> <li>Preserve type variables from the surrounding scope when inferring generic calls. For example, forwarding a <code>list[T]</code> through a generic helper can now preserve <code>list[T]</code> as the result type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30423">#30423</a>)</li> <li>Use the receiver’s type to select overloads when a method is called through an alias. For example, an alias of a Redis method can now infer an awaitable return type for an asynchronous client. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29341">#29341</a>)</li> <li>Report <code>unknown-argument</code> when <code>copy.replace</code> or a generated <code>__replace__</code> receives an <code>init=False</code> field. This applies to standard-library and Pydantic dataclasses, attrs classes, and other classes using <code>dataclass_transform</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30850">#30850</a>)</li> <li>Preserve literals when union simplification discards the member that would have made them redundant. This also fixes a crash when checking some unions of recursive protocols. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30774">#30774</a>)</li> <li>Accept <code>self</code> as a field keyword in dataclass and Pydantic constructors and in dataclass and named tuple replacement methods. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29341">#29341</a>)</li> <li>Infer <code>Self</code> from the receiver and field arguments in generated dataclass and named tuple methods, so an inherited method can accept a base-class value for a field annotated with <code>Self</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29341">#29341</a>)</li> </ul> <h3>LSP server</h3> <ul> <li>Speed up member completions when looking up documentation for classes and enums with many attributes, such as Flet’s <code>Icons</code> and PySide6’s <code>Qt.Key</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30707">#30707</a>)</li> </ul> <h3>Diagnostic improvements</h3> <ul> <li>Rename the diagnostic for unknown rules in ignore comments to <code>unknown-rule-in-ignore-comment</code>. The old name, <code>ignore-comment-unknown-rule</code>, remains a compatibility alias in configuration and ignore comments. Run <code>ty check --fix</code> to update ignore comments automatically. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30827">#30827</a>)</li> </ul> <h3>Performance improvements</h3> <h4>Calls and overloads</h4> <ul> <li>Check nested calls such as NumPy’s <code>dot(dot(a, b), c)</code> faster when several outer overloads give the inner call the same expected return type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30785">#30785</a>)</li> <li>Reuse successful inference for ordinary type variables and <code>Self</code> across generic calls with matching parameter and argument types, when there’s no expected return type or unpacked variadic parameter. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30815">#30815</a>)</li> <li>Speed up overload resolution by reusing comparisons of parameter and return types when several overloads match. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30781">#30781</a>)</li> <li>Check whether matching overloads cover all possible arguments faster when consecutive overloads infer the same argument types, as can happen with <code>boto3</code> client calls. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30789">#30789</a>)</li> <li>Speed up repeated calls to overloads that share a type variable, such as <code>TypedDict.get</code> overloads that share the type of the default argument. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30813">#30813</a>)</li> <li>Check calls to ordinary functions faster when many arguments are captured by <code>*args</code> or <code>**kwargs</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30734">#30734</a>)</li> <li>Speed up call inference by avoiding unnecessary copies of inferred argument types, including on the first pass of generic inference. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30826">#30826</a>)</li> </ul> <h4>Generics and recursive types</h4> <ul> <li>Speed up type compatibility checks that must hold for every specialization of a type variable, including assignability and equivalence checks. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30748">#30748</a>)</li> <li>Solve generic type constraints faster by reusing results for pairs of constraints that yield no new information. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30788">#30788</a>)</li> <li>Speed up inference for recursive types whose generic arguments share nested unions. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30735">#30735</a>)</li> <li>Limit alias expansion and cycle checks to aliases and recursive types. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30828">#30828</a>)</li> </ul> <h4>Classes and <code>TypedDict</code>s</h4> <ul> <li>Check assignments to instance attributes faster when repeated assignments give the attribute a wide union type, as in tokenizer state machines. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30775">#30775</a>)</li> <li>Speed up repeated comparisons between <code>TypedDict</code>s and unions, including recursive unions such as Pydantic’s <code>CoreSchema</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30555">#30555</a>)</li> <li>Determine whether a class is abstract faster when its methods use decorators that preserve the method’s type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30802">#30802</a>)</li> <li>Check enums with built-in tuple values faster when using the bundled standard-library stubs. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30777">#30777</a>)</li> <li>Check attribute assignments and deletions faster when the class and its bases are unfrozen. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30820">#30820</a>)</li> <li>Speed up checks for inherited dataclass ordering by looking up decorators only on base classes with ordering enabled. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30810">#30810</a>)</li> </ul> <h4>Unions, narrowing, and literals</h4> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ty/commit/ea34883dccf84b420e2953760bb8c8b64264e2d2"><code>ea34883</code></a> Bump version to 0.0.109 (<a href="https://redirect.github.com/astral-sh/ty/issues/5093">#5093</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/69ff03898b35e336e277c860b56602758c6456e1"><code>69ff038</code></a> Use the shared upload-r2 action for release mirrors (<a href="https://redirect.github.com/astral-sh/ty/issues/5091">#5091</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/fe7aceaa8e6da70904efc68bf5322d408f72ee71"><code>fe7acea</code></a> Update benchmarks for ty 0.0.108 (<a href="https://redirect.github.com/astral-sh/ty/issues/5087">#5087</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/9b71b5c321d9d9d41bd4b1baf124dded1c740ffd"><code>9b71b5c</code></a> Use Core type checking for uncategorized ty changes from Ruff (<a href="https://redirect.github.com/astral-sh/ty/issues/5086">#5086</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/4e75ea5c50c99d3375df10cd865170041ac00767"><code>4e75ea5</code></a> Add a performance section to generated changelogs (<a href="https://redirect.github.com/astral-sh/ty/issues/5084">#5084</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/d6717a9aac3c44fe31fc35eac4196d02ae46fc7c"><code>d6717a9</code></a> Bump version to 0.0.108 (<a href="https://redirect.github.com/astral-sh/ty/issues/5083">#5083</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/8eef928f25b870a62f1341b0c4c858874dd9ec89"><code>8eef928</code></a> Rewrite changelogs when preparing ty releases (<a href="https://redirect.github.com/astral-sh/ty/issues/5078">#5078</a>)</li> <li>See full diff in <a href="https://github.com/astral-sh/ty/compare/0.0.107...0.0.109">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 <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> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
