Skip to content

⬆️ Update dependency ty to v0.0.23#1399

Merged
liudger merged 1 commit intomainfrom
renovate/ty-0.x
Mar 14, 2026
Merged

⬆️ Update dependency ty to v0.0.23#1399
liudger merged 1 commit intomainfrom
renovate/ty-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 14, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ty (changelog) ==0.0.21==0.0.23 age adoption passing confidence

Release Notes

astral-sh/ty (ty)

v0.0.23

Compare Source

Released on 2026-03-13.

Bug fixes
  • Fix false-positive diagnostics for PEP-604 union annotations on attribute targets on Python 3.9 when from __future__ import annotations is active (#​23915)
  • dataclass_transform: Respect kw_only overwrites in dataclasses (#​23930)
  • Fix too-many-cycle panics when inferring loop variables with Literal types (#​23875)
Server
Core type checking
  • Split errors for possibly missing submodules into a new possibly-missing-submodule error code (enabled by default), and make possibly-missing-attribute ignored by default (#​23918)
  • Improve handling of bidirectional inference when (#​23844)
  • Fix inference of conditionally defined properties (#​23925)
Improvements to diagnostics
  • Clarify in diagnostics that from __future__ import annotations only stringifies type annotations (#​23928)
Performance improvements
  • Avoid duplicated work during multi-inference (#​23923)
Contributors

v0.0.22

Compare Source

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

Configuration

📅 Schedule: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 added dependencies Upgrade or downgrade of project dependencies. no-stale This issue or PR is exempted from the stable bot. labels Mar 14, 2026
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.89%. Comparing base (bb7d600) to head (e0a4f97).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1399   +/-   ##
=======================================
  Coverage   99.89%   99.89%           
=======================================
  Files           6        6           
  Lines         997      997           
  Branches      139      139           
=======================================
  Hits          996      996           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@liudger liudger merged commit 35f94a0 into main Mar 14, 2026
18 checks passed
@renovate renovate bot deleted the renovate/ty-0.x branch March 14, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Upgrade or downgrade of project dependencies. no-stale This issue or PR is exempted from the stable bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant