Skip to content

⬆️ deps: bump dependency ty to >=0.0.113 - #68

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
Contributor

This PR contains the following updates:

Package Change Age Confidence
ty (changelog) >=0.0.108 → >=0.0.113 age confidence

Release Notes

astral-sh/ty (ty)

v0.0.113

Compare Source

Released on 2026-11-29.

Performance improvements
  • Simplify unions containing many string, bytes, or integer literals faster by reusing comparisons with other members, such as the class objects in NumPy’s dtype annotations. (#​30994)
  • Infer large collections of literals faster when consecutive elements without an expected type widen to the same built-in type, as in the keys or values of Rich’s emoji table. (#​30672)
  • Index imported dependencies faster by skipping syntax checks and other work used only for diagnostics in files outside the set ty checks. (#​30146)
  • Reduce cache overhead in the language server and ty check --watch by avoiding a lock when reusing a parsed module. (#​30951)
  • Check functions annotated -> None faster by skipping the analysis that determines whether execution can reach an implicit return. (#​30987)
  • Report project-wide diagnostics faster by looking up each diagnostic’s file path once before sorting. (#​30982)
  • Simplify unions of fixed-length tuples faster by checking earlier for disjoint literals or distinct class objects at matching positions. (#​30997)
  • Reduce the overhead of comparing ordinary union members by running literal-group simplification only for groups of literals. (#​30997)
  • Match positional arguments to parameters faster when every remaining parameter has a default and the call has no keyword arguments or unpacking. (#​30964)
  • Check overloaded methods faster by building their signatures directly as ty specializes each overload for the receiver. (#​30972)
  • Look up methods on specialized generic classes faster when Self appears in multiple parts of the signature. (#​30966)
  • Reduce stack usage when inferring and checking function calls. (#​31006)
  • Reduce cache lookup overhead for assignability checks and other type comparisons that infer type variables. (#​30968)
  • Reduce the overhead of solving type constraints when a comparison has a simple yes-or-no answer or involves only a few constraints. (#​31023, #​30980)
  • Analyze generic types such as list[T] faster by avoiding redundant recursion checks when inspecting their type arguments. (#​30783)
  • Resolve names used as types faster, including imported classes and implicit type aliases, by following imports once when checking what a name refers to. (#​31018)
  • Reduce the cost of looking up a generic type alias in its original form when ty already has the alias without type arguments. (#​30977)
  • Resolve names and attributes faster by starting with local bindings and using a direct lookup when a single unconditional binding needs no further narrowing or re-export check. (#​30952, #​30949)
  • Look up names faster in small scopes, such as functions with few parameters and local variables. (#​31010)
  • Index and look up definitions faster, including the common case where a statement defines a single name. (#​30989, #​31005)
  • Index function parameters more efficiently when the body contains only a docstring, pass, or ..., including stubs with a leading docstring. (#​30984)
  • Reduce the overhead of tracking assignments and declarations through control flow when only a few definitions can reach a use. (#​31009, #​30971)
  • Reduce allocations when scopes in the same file share identical assignment and declaration information. (#​31035)
  • Reduce the work needed to build the index of conditions that determine which code is reachable. (#​30942, #​31032)
  • Evaluate whether code is reachable faster when the relevant conditions are in the current scope. (#​30948)
  • Reduce allocations when tracking which names and attributes are defined across branches by reusing up-to-date information and recording undefined entries only when needed. (#​31024, #​31026)
  • Reduce allocations when indexing files by sizing tables for imports and other syntax information up front. (#​31031)
  • Reduce diagnostic overhead by reusing checks for whether a file is in scope and whether an enclosing function uses @no_type_check. (#​30947)
  • Skip looking up redundant-condition rules in blocks without if, assert, while, or match statements. (#​30947)
Memory usage improvements
  • Use less memory across a project by reserving cache space for dynamically created classes and type aliases only on the definitions that need it. (#​30955)
  • Use less memory when treating a bound Python method such as obj.method as a callable. (#​31017)
  • Use less memory when checking whether a function matches a Callable type by comparing their signatures directly. (#​25948)
  • Use less memory to track expressions inferred on their own, including the right-hand sides of assignments. (#​28952)
  • Use less memory to track unpacking in assignments and comprehensions. (#​30975)
Core type checking
  • Check generators faster when an implicit None return is valid, as with Iterator[int] or Generator[int, None, str | None]. In these cases, ty skips analyzing whether execution reaches the end of the body. (#​30992)
  • Reduce the memory used to cache type-checking results on 64-bit systems by upgrading to Salsa 0.28.7. (#​30950)
  • Include more cache bookkeeping in reports enabled by TY_MEMORY_REPORT, which can increase reported memory use. (#​30950)
Contributors

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

v0.0.109

Compare Source

Released on 2026-11-23.

Bug fixes
  • Preserve type variables from the surrounding scope when inferring generic calls. For example, forwarding a list[T] through a generic helper can now preserve list[T] as the result type. (#​30423)
  • 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. (#​29341)
  • Report unknown-argument when copy.replace or a generated __replace__ receives an init=False field. This applies to standard-library and Pydantic dataclasses, attrs classes, and other classes using dataclass_transform. (#​30850)
  • 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. (#​30774)
  • Accept self as a field keyword in dataclass and Pydantic constructors and in dataclass and named tuple replacement methods. (#​29341)
  • Infer Self 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 Self. (#​29341)
LSP server
  • Speed up member completions when looking up documentation for classes and enums with many attributes, such as Flet’s Icons and PySide6’s Qt.Key. (#​30707)
Diagnostic improvements
  • Rename the diagnostic for unknown rules in ignore comments to unknown-rule-in-ignore-comment. The old name, ignore-comment-unknown-rule, remains a compatibility alias in configuration and ignore comments. Run ty check --fix to update ignore comments automatically. (#​30827)
Performance improvements
Calls and overloads
  • Check nested calls such as NumPy’s dot(dot(a, b), c) faster when several outer overloads give the inner call the same expected return type. (#​30785)
  • Reuse successful inference for ordinary type variables and Self across generic calls with matching parameter and argument types, when there’s no expected return type or unpacked variadic parameter. (#​30815)
  • Speed up overload resolution by reusing comparisons of parameter and return types when several overloads match. (#​30781)
  • Check whether matching overloads cover all possible arguments faster when consecutive overloads infer the same argument types, as can happen with boto3 client calls. (#​30789)
  • Speed up repeated calls to overloads that share a type variable, such as TypedDict.get overloads that share the type of the default argument. (#​30813)
  • Check calls to ordinary functions faster when many arguments are captured by *args or **kwargs. (#​30734)
  • Speed up call inference by avoiding unnecessary copies of inferred argument types, including on the first pass of generic inference. (#​30826)
Generics and recursive types
  • Speed up type compatibility checks that must hold for every specialization of a type variable, including assignability and equivalence checks. (#​30748)
  • Solve generic type constraints faster by reusing results for pairs of constraints that yield no new information. (#​30788)
  • Speed up inference for recursive types whose generic arguments share nested unions. (#​30735)
  • Limit alias expansion and cycle checks to aliases and recursive types. (#​30828)
Classes and TypedDicts
  • Check assignments to instance attributes faster when repeated assignments give the attribute a wide union type, as in tokenizer state machines. (#​30775)
  • Speed up repeated comparisons between TypedDicts and unions, including recursive unions such as Pydantic’s CoreSchema. (#​30555)
  • Determine whether a class is abstract faster when its methods use decorators that preserve the method’s type. (#​30802)
  • Check enums with built-in tuple values faster when using the bundled standard-library stubs. (#​30777)
  • Check attribute assignments and deletions faster when the class and its bases are unfrozen. (#​30820)
  • Speed up checks for inherited dataclass ordering by looking up decorators only on base classes with ordering enabled. (#​30810)
Unions, narrowing, and literals
  • Speed up large match statements that rule out many literal values, such as integer opcode dispatch. (#​30736, #​30767)
  • Reuse the result of simplifying wide unions when narrowing types or merging assignments across branches. (#​30705)
  • Speed up narrowing when a name or attribute has a single possible type. With analysis.strict-generic-narrowing = true, this also lets an isinstance check narrow a value to a more specific type when a recursively inferred type argument was approximated as object. (#​30829)
  • Simplify unions of fixed-length tuples faster when their first elements have disjoint literal types. (#​30793)
  • Simplify unions faster when their members come from different unresolved inference cycles. (#​30791)
  • Speed up str.startswith checks on values with many possible literal strings, such as enum member names. (#​30811)
  • Reduce the cost of narrowing names, attributes, and subscripts, including when the relevant conditions are in the current scope. (#​30773, #​30816)
  • Simplify unions faster when they collapse to a single type. (#​30817)
Collections and iteration
  • Infer collection literals faster when several elements widen to the same type, such as a list of floats. Reuse the numeric unions ty infers for float and complex. (#​30796, #​30695)
  • Infer long tuple literals faster when many elements widen to the same built-in type. (#​30677)
  • Reuse the inferred element type when iterating over the same synchronous iterable type again. (#​30814)
File discovery, imports, and control flow
  • Speed up control flow analysis in large dispatch functions by reusing narrowing and reachability results along shared paths. (#​30787, #​30784)
  • Discover files faster with the default src.include pattern or when all exclude patterns apply only to directories. (#​30772, #​30794)
  • Check which code is reachable faster in large scopes, including those where wildcard imports bring many names into scope. (#​30771, #​30778)
  • Speed up control flow analysis when branches leave the same definitions in scope, including in deeply nested with blocks. (#​30803)
  • Resolve references to imported submodules faster after dotted imports such as import a.b.c. (#​30722)
Core type checking
  • Infer enum.auto() values from preceding members in both class-based and functional enums. For sequential integer values, ty counts from the last value through Python 3.10 and from the highest value for Python 3.11 and later targets. It can infer int when the exact value depends on runtime data or control flow. (#​30548)
  • Use the underscore-stripped name of an attrs field in constructors and copy.replace. For example, a field accessed as _id takes the keyword id by default. An explicit alias takes precedence. (#​30824)
  • Infer the specific exception type bound by except ... as exc when the handler uses a type alias for a tuple of exception classes or a union of an exception class and a tuple. (#​30758)
  • Recognize @field_name.validator on fields declared with attrs.field or attr.ib, fixing false missing-attribute errors and preserving the decorated method’s signature. (#​30839)
  • Fix false not-callable errors on attrs @field_name.default decorators for fields that ty treats as required constructor arguments. (#​30839)
  • Infer the enum type when conditional member declarations make an alias’s canonical member uncertain. (#​30548)
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 becomes conflicted, 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
Contributor 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.114, which is a pending version that has not yet passed the Minimum Release Age threshold.
Renovate was attempting to update to 0.0.113
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 91b7414 to 00b117d Compare November 30, 2026 04:42
@renovate renovate Bot changed the title ⬆️ deps: bump dependency ty to >=0.0.112 ⬆️ deps: bump dependency ty to >=0.0.113 Nov 30, 2026
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