Skip to content

Bump ty from 0.0.105 to 0.0.109 - #9161

Merged
gregns1 merged 1 commit into
mainfrom
dependabot/uv/ty-0.0.109
Nov 27, 2026
Merged

gregns1 merged 1 commit into
mainfrom
dependabot/uv/ty-0.0.109

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Bumps ty from 0.0.105 to 0.0.109.

Release notes

Sourced from ty's releases.

0.0.109

Release Notes

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)

... (truncated)

Changelog

Sourced from ty's changelog.

0.0.109

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

... (truncated)

Commits

@dependabot
dependabot Bot requested review from a team November 27, 2026 10:14
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 27, 2026
Copilot AI balanced review requested due to automatic review settings November 27, 2026 10:14
@dependabot dependabot Bot added the python:uv Pull requests that update python:uv code label Nov 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for this development-only ty dependency update.

No open issues 🎉

What changed in this PR

Updates the ty Python type checker from 0.0.105 to 0.0.109 for Sync Gateway’s development tooling. No application code changes are included.

Changes:

  • Advances the exact development dependency pin to 0.0.109.
  • Refreshes the lockfile with matching source and wheel metadata.
File Description
uv.lock Updates the locked version and distribution URLs, hashes, sizes, and timestamps.
pyproject.toml Pins the ty development dependency to 0.0.109.

Review effort: Balanced

Bumps [ty](https://github.com/astral-sh/ty) from 0.0.105 to 0.0.109.
- [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.105...0.0.109)

---
updated-dependencies:
- dependency-name: ty
  dependency-version: 0.0.109
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/ty-0.0.109 branch from 5f12646 to 5e13850 Compare November 27, 2026 10:26
@gregns1
gregns1 enabled auto-merge (squash) November 27, 2026 10:28
@gregns1
gregns1 merged commit 6cf1617 into main Nov 27, 2026
22 of 23 checks passed
@gregns1
gregns1 deleted the dependabot/uv/ty-0.0.109 branch November 27, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants