Skip to content

Bump ty from 0.0.21 to 0.0.22#3049

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/ty-0.0.22
Open

Bump ty from 0.0.21 to 0.0.22#3049
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/ty-0.0.22

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 13, 2026

Bumps ty from 0.0.21 to 0.0.22.

Release notes

Sourced from ty's releases.

0.0.22

Release Notes

Released on 2026-03-12.

Bug fixes

  • Fix issue where variables could be inferred as Divergent if they were assigned using tuple unpacking in loops (#23812)
  • Allow error = "all" in a root pyproject.toml file to be overridden using tool.ty.overrides in a subdirectory's pyproject.toml file (#23712)
  • Only unsoundly upcast type[] types to their constructor Callable type during assignability checks, not during redundancy/subtyping checks (#23834, #23901)
  • Fix stack overflow that could occur with certain recursive protocols (#23870)

LSP server

  • Improve syntax highlighting by fixing semantic token classification for generic class members in annotations (#23811)

CLI

  • Add ty explain <RULE> CLI command (#23766)

Core type checking

  • Add validation for type parameters with defaults after TypeVarTuple parameters (#23807)
  • Allow subtypes of LiteralString to be narrowed using equality checks (#23794)
  • Detect invalid partially stringified PEP-604 unions (#23285)
  • Disambiguate duplicate-looking overloaded callables in union display (#23907)
  • Don't promote module-literal types to types.ModuleType (#23786)
  • Improve type context support for __setitem__ dunder calls (#23800)
  • Infer t | {"foo": int} as TD if t is an instance of a TypedDict td with a foo: int key (#23806)
  • Narrow T to T & str rather than str if T is a constrained TypeVar with str as one of its constraints (#23850)
  • Promote None to None | Unknown in invariant contexts (#23790)
  • Reject type[Callable] in type annotations (#23753)
  • Support enum member access through enum instances and members (#23772)
  • Eagerly narrow the type associated with keys of heterogeneous dict literals even when a dict literal appears as a subexpression inside a list or tuple literals (#23569)
  • Ensure that T & ~S is always inferred as a subtype of U during generic inference if T is understood as a subtype of U (#23728)
  • Optimize and improve cycle recovery by preventing "tainted" unions in cycle normalization (#23563)

Installer

  • Prefer downloading releases from Astral's mirror over GitHub (#2980)

Contributors

... (truncated)

Changelog

Sourced from ty's changelog.

0.0.22

Released on 2026-03-12.

Bug fixes

  • Fix issue where variables could be inferred as Divergent if they were assigned using tuple unpacking in loops (#23812)
  • Allow error = "all" in a root pyproject.toml file to be overridden using tool.ty.overrides in a subdirectory's pyproject.toml file (#23712)
  • Only unsoundly upcast type[] types to their constructor Callable type during assignability checks, not during redundancy/subtyping checks (#23834, #23901)
  • Fix stack overflow that could occur with certain recursive protocols (#23870)

LSP server

  • Improve syntax highlighting by fixing semantic token classification for generic class members in annotations (#23811)

CLI

  • Add ty explain <RULE> CLI command (#23766)

Core type checking

  • Add validation for type parameters with defaults after TypeVarTuple parameters (#23807)
  • Allow subtypes of LiteralString to be narrowed using equality checks (#23794)
  • Detect invalid partially stringified PEP-604 unions (#23285)
  • Disambiguate duplicate-looking overloaded callables in union display (#23907)
  • Don't promote module-literal types to types.ModuleType (#23786)
  • Improve type context support for __setitem__ dunder calls (#23800)
  • Infer t | {"foo": int} as TD if t is an instance of a TypedDict td with a foo: int key (#23806)
  • Narrow T to T & str rather than str if T is a constrained TypeVar with str as one of its constraints (#23850)
  • Promote None to None | Unknown in invariant contexts (#23790)
  • Reject type[Callable] in type annotations (#23753)
  • Support enum member access through enum instances and members (#23772)
  • Eagerly narrow the type associated with keys of heterogeneous dict literals even when a dict literal appears as a subexpression inside a list or tuple literals (#23569)
  • Ensure that T & ~S is always inferred as a subtype of U during generic inference if T is understood as a subtype of U (#23728)
  • Optimize and improve cycle recovery by preventing "tainted" unions in cycle normalization (#23563)

Installer

  • Prefer downloading releases from Astral's mirror over GitHub (#2980)

Contributors

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 13, 2026
@dependabot dependabot bot deployed to development March 13, 2026 05:04 Active
@github-actions github-actions bot enabled auto-merge March 13, 2026 05:04
@dependabot dependabot bot deployed to vuforia March 13, 2026 06:12 Active
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 Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants