Skip to content

MINOR: [Python] Bump ty from 0.0.109 to 1.0.0 in /python in the python-stubs group - #55887

Merged
rok merged 2 commits into
mainfrom
dependabot/pip/python/python-stubs-6ed2090e70
Dec 1, 2026
Merged

rok merged 2 commits into
mainfrom
dependabot/pip/python/python-stubs-6ed2090e70

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps the python-stubs group in /python with 1 update: ty.

Updates ty from 0.0.109 to 0.0.112

Release notes

Sourced from ty's releases.

0.0.112

Release Notes

Released on 2026-11-26.

Bug fixes

  • Fix a crash when pressing Ctrl+C just after saving a watched file. ty check --watch now exits with the usual interrupt status 130. (#29976)

Performance improvements

  • Check assignments faster by looking up type annotations and imported Final qualifiers together. (#30797)
  • Simplify unions of fixed-length tuples faster when a pair of elements at any matching position contains disjoint literals or distinct class objects, as in Django’s registry for arithmetic expressions. (#30940)
  • Speed up control flow analysis for type narrowing and reachability, especially in files with large wildcard imports such as from OpenGL.GL import *. (#30790)
  • Infer types faster for collections of functions such as Jinja’s filter registry. When each function has a single standard signature, ty can rule out a match if required parameters at the same position accept different keyword names or if one function requires more positional arguments than the other accepts. (#30858)
  • Infer type arguments faster, including element types for list literals. ty uses a single lower bound directly and removes duplicate types after selecting the bounds relevant to inference or validation. (#30786)
  • Speed up checks of modules and functions without Final declarations by skipping the search for Final names that never receive a value. (#30946)

Core type checking

  • Use the input type of an attrs @field_name.converter method when checking generated constructor arguments and field assignments. Reading the field gives its declared type. If several converters are registered, the first one determines the accepted input type. (#30959)
  • Recognize __attrs_attrs__ as a tuple of field metadata on attrs classes and instances. ty also recognizes the attribute after attrs.has narrows a class to type[AttrsInstance]. (#30958)
  • Report invalid-argument-type when attrs.fields or attrs.asdict receives an argument that lacks the __attrs_attrs__ member required by the AttrsInstance protocol. (#30958)

Contributors

Install ty 0.0.112

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.112/ty-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.112/ty-installer.ps1 | iex"

Download ty 0.0.112

File Platform Checksum
ty-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
ty-x86_64-apple-darwin.tar.gz Intel macOS checksum
ty-aarch64-pc-windows-msvc.zip ARM64 Windows checksum

... (truncated)

Changelog

Sourced from ty's changelog.

0.0.112

Released on 2026-11-26.

Bug fixes

  • Fix a crash when pressing Ctrl+C just after saving a watched file. ty check --watch now exits with the usual interrupt status 130. (#29976)

Performance improvements

  • Check assignments faster by looking up type annotations and imported Final qualifiers together. (#30797)
  • Simplify unions of fixed-length tuples faster when a pair of elements at any matching position contains disjoint literals or distinct class objects, as in Django’s registry for arithmetic expressions. (#30940)
  • Speed up control flow analysis for type narrowing and reachability, especially in files with large wildcard imports such as from OpenGL.GL import *. (#30790)
  • Infer types faster for collections of functions such as Jinja’s filter registry. When each function has a single standard signature, ty can rule out a match if required parameters at the same position accept different keyword names or if one function requires more positional arguments than the other accepts. (#30858)
  • Infer type arguments faster, including element types for list literals. ty uses a single lower bound directly and removes duplicate types after selecting the bounds relevant to inference or validation. (#30786)
  • Speed up checks of modules and functions without Final declarations by skipping the search for Final names that never receive a value. (#30946)

Core type checking

  • Use the input type of an attrs @field_name.converter method when checking generated constructor arguments and field assignments. Reading the field gives its declared type. If several converters are registered, the first one determines the accepted input type. (#30959)
  • Recognize __attrs_attrs__ as a tuple of field metadata on attrs classes and instances. ty also recognizes the attribute after attrs.has narrows a class to type[AttrsInstance]. (#30958)
  • Report invalid-argument-type when attrs.fields or attrs.asdict receives an argument that lacks the __attrs_attrs__ member required by the AttrsInstance protocol. (#30958)

Contributors

0.0.111

Released on 2026-11-25.

Bug fixes

  • Fix a crash when choosing an overload for a class decorator depends on an inherited attribute whose type refers back to the decorated class. ty preserves the original class for Self inference even if the decorated name widens to a union. (#30845)

Performance improvements

  • Infer repeated generic calls faster by reusing type arguments when the argument types and expected return type match, including for bounded type variables. (#30909)
  • Speed up type checking by reducing the work needed to collect and merge inferred expression types, as in geomaglib. (#30882)
  • Analyze control flow faster when switching between branches or exception handlers, such as in generated bindings with many try statements. (#30776)
  • Narrow names and attributes faster by looking up only the conditions that can affect them and reusing those lookups as ty follows control flow. (#30792, #30780)
  • Speed up reachability analysis when branches merge and leave the same definitions in scope. (#30865)
  • Preserve narrowing from a later check when complex control flow reaches ty's limit for combining narrowing conditions. (#30865)
  • Resolve overloaded calls with Any arguments faster when the earlier overloads infer the same argument types and all rule out object() at the same argument position. (#30866)
  • Infer instance attributes such as self.name faster by indexing their assignments and declarations once per class. (#30901)
  • Check assignments to unannotated instance attributes faster when the value already has the attribute's inferred type, such as when the call in self.items = wrap(value) determines the type of items. (#30862)
  • Look up inherited members faster on standard generic types such as list[int] and list[str] by reusing their method resolution order across type arguments. (#30908)
  • Determine instance types faster by reusing information about a class and its bases, including whether it is a TypedDict or a protocol or inherits from explicit Any. (#30906)
  • Look up members faster across different string or integer literals, while retaining exact lengths for string __len__. (#30907)

... (truncated)

Commits

Dependabot compatibility score

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 commands and options

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

Bumps the python-stubs group in /python with 1 update: [ty](https://github.com/astral-sh/ty).


Updates `ty` from 0.0.109 to 0.0.112
- [Release notes](https://github.com/astral-sh/ty/releases)
- [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ty@0.0.109...0.0.112)

---
updated-dependencies:
- dependency-name: ty
  dependency-version: 0.0.112
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-stubs
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested review from AlenkaF, raulcd and rok as code owners December 1, 2026 17:01
@dependabot dependabot Bot added dependencies Dependabot-only python Pull requests that update python code labels Dec 1, 2026

@rok rok left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge if green.

@rok

rok commented Dec 1, 2026

Copy link
Copy Markdown
Member

1.0 just released, will bump https://github.com/astral-sh/ty/releases

Comment thread python/requirements-stubs.txt Resolved
@rok rok changed the title MINOR: [Python] Bump ty from 0.0.109 to 0.0.112 in /python in the python-stubs group MINOR: [Python] Bump ty from 0.0.109 to 1.0.0 in /python in the python-stubs group Dec 1, 2026
@rok
rok merged commit f53adcf into main Dec 1, 2026
38 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/python/python-stubs-6ed2090e70 branch December 1, 2026 18:46
@rok

rok commented Dec 1, 2026

Copy link
Copy Markdown
Member

FYI @AlenkaF @tadeja @jorisvandenbossche

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Python dependencies Dependabot-only python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant