Skip to content

⬆️ deps: bump dependency ty to >=0.0.112 - #9

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/python-dev-dependencies
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/python-dev-dependencies

Conversation

@renovate

@renovate renovate Bot commented Nov 30, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
ty (changelog) >=0.0.109 → >=0.0.112 age confidence

Release Notes

astral-sh/ty (ty)

v0.0.112

Compare Source

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

v0.0.111

Compare Source

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)
  • Bind methods without overloads faster by reusing whether they are class methods or static methods. (#​30907)
  • Speed up inference for unannotated collections such as items = [] by looking up the initializer only for uses that can constrain its type, such as items.append(1). (#​30904)
  • Index names, attributes, and subscripts faster, including common accesses such as self.name. (#​30904)
  • Resolve recursive types faster when wide unions of distinct instance types stay the same, as in Pygments' Sphinx extension. (#​30805)
  • Reduce indexing overhead by making it cheaper to store and share information about assignments and declarations. (#​30905)
  • Reduce the cost of storing inferred expression types when finishing a scope. (#​30895)
Contributors

v0.0.110

Compare Source

Released on 2026-11-25.

Bug fixes
  • Avoid long type-checking delays in nested generic calls where a child argument can match both a type variable and a parameterized type, such as T | Tree[T]. (#​30847)
  • Infer more precise return types when a generic argument can match multiple members of a union. For example, passing [1] to a function with parameter type T | list[T] and return type list[T] can now infer list[int] when that choice fits the other arguments and the expected return type. (#​30847)
  • Use the types of other operands or branches when inferring fresh collection literals in boolean and conditional expressions. If values is list[int] | None, ty now accepts appending 1 to the result of values or [None] and still rejects appending None. (#​30911)
  • Narrow types using built-in list equality in comparison and membership checks. For example, value in ("all", "open") now narrows str | list[str] to the two string literals under the default equality settings. The change also covers != for built-in lists and dictionaries, while respecting custom comparison methods and analysis.strict-equality-semantics. (#​30762)
  • Restore editor folding for indented # region and # endregion comments, such as those inside a function. (#​30893)
Diagnostic improvements
  • Explain in incompatible-property-override and incompatible-mutable-override diagnostics when an attribute has neither a matching __slots__ entry nor an instance dictionary. When a custom __setattr__ rejects writes of a type accepted by the base class, point to that method. (#​29531)
Configuration changes
  • Opt in to uv discovery of your workspace, Python environment, and dependency metadata with the preview setting project-manager.project = "uv". It requires uv 0.12.3 or later and an already synchronized environment. The default is "none", and an explicit TY_UV takes precedence. (#​30568)
Performance improvements
  • Prevent runaway memory use during generic call inference, such as when passing a union of string literals to pandas.Series. (#​30842)
  • Discover files faster when many paths are passed explicitly to ty check --force-exclude. (#​30635)
  • Report errors faster when a call fails for several members of a large union by reusing the formatted union across diagnostics at that call site. (#​30857)
  • Index bundled stubs faster by resolving Python version checks and, when targeting a specific platform, platform checks up front. LiteralString inlay hints can also link to the declaration for the configured Python version. (#​30863)
  • Determine whether classes are abstract faster when they contain plain assignments or methods with decorators that preserve concreteness, such as contextlib.contextmanager. (#​30804, #​30903)
  • Speed up repeated member lookups on the same class, including across different specializations of a generic class. (#​30870)
  • Resolve built-in names faster by reusing lookups of the standard builtins module and the project’s optional __builtins__ module. (#​30884)
  • Speed up lookups of name uses and their enclosing scopes. (#​30886)
  • Reduce the overhead of reusing results when combining conditions for type narrowing and reachability analysis. (#​30885)
  • Reduce the overhead of simple type compatibility checks, such as comparing identical types, by allocating constraint solver storage only when needed. (#​30887)
  • Speed up generic call inference by skipping unused explanations when candidate type arguments violate their bounds. (#​30864)
  • Reduce the overhead of inferring a call argument against a single expected parameter type. (#​30883)
Core type checking
  • Check calls to __attrs_init__ on attrs classes declared with init=False, using the same field parameters as a generated __init__. (#​30852)
  • Allow callers to omit an attrs constructor argument when the field’s default is supplied by a method decorated with @field_name.default. (#​30872)
  • Avoid overly narrow return types for generic calls in assignments annotated with unions. For example, a call that returns the first item of a list or None can infer int | None from an assignment annotation when the list contains an Any value and ty previously inferred only None. (#​30480)
  • Show the type inferred from the literal itself in invalid-assignment diagnostics for incompatible collections. For example, x: list[int] = ["a"] now reports list[str] as the source type. (#​30478)
  • Use uv’s versioned preview format to load workspace and script metadata, with a fallback to the unversioned request on uv 0.12.3 through 0.13.6. (#​30529)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Nov 30, 2026

Copy link
Copy Markdown
Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pyproject.toml
Artifact update for ty resolved to version 0.0.113, which is a pending version that has not yet passed the Minimum Release Age threshold.
Renovate was attempting to update to 0.0.112
This is (likely) not a bug in Renovate, but due to the way your project pins dependencies, _and_ how Renovate calls your package manager to update them.
Until Renovate supports specifying an exact update to your package manager (https://github.com/renovatebot/renovate/issues/41624), it is recommended to directly pin your dependencies (with `rangeStrategy=pin` for apps, or `rangeStrategy=widen` for libraries)
See also: https://docs.renovatebot.com/dependency-pinning/

@renovate
renovate Bot force-pushed the renovate/python-dev-dependencies branch from 81c9cb5 to 68bbc7a Compare November 30, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants