Skip to content

chore(deps): update dependency ty to v0.0.96 - #736

Merged
nepeat merged 1 commit into
mainfrom
renovate/ty-0.x
Nov 3, 2026
Merged

nepeat merged 1 commit into
mainfrom
renovate/ty-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
ty (changelog) 0.0.91 → 0.0.96 age confidence

Release Notes

astral-sh/ty (ty)

v0.0.96

Compare Source

Released on 2026-11-03.

Bug fixes
  • Fix a panic when checking protocols involving runtime type aliases (#​29840)
  • Preserve Pydantic field metadata in quoted annotations (#​29851)
  • Resolve class-local names in generic type aliases (#​29915)
LSP server
  • Keep argument name hints display-only before later positional arguments or *args (#​29801)
  • Keep argument name hints display-only when they would insert duplicate or invalid keywords (#​29806)
  • Show field docstrings on hover for constructor keyword arguments (#​29907)
CLI
  • Give NO_COLOR precedence over FORCE_COLOR and CLICOLOR_FORCE in diagnostics (#​29898)
  • Honor color overrides in progress bars (#​29891)
  • Respect FORCE_COLOR in ty check even when output is piped (#​29830)
Diagnostic improvements
  • Avoid false redundant-cast diagnostics when casting the result of a generic call (#​29835)
Core type checking
  • Infer type arguments for union parameters using constraints from the whole call (#​29236)
  • Infer type arguments from generic TypedDict values passed to functions (#​29903)
  • Sync vendored typeshed stubs (#​29869). Typeshed diff
Performance
  • Avoid constraint solving when checking overlap between type variables in invariant positions (#​29878)
  • Cache subscript method resolution (#​29824)
  • Cache substitutions for generic type aliases (#​29861)
  • Defer member lookup when checking overrides (#​29866)
  • Find existing imports without scanning nested scopes (#​29882)
  • Reuse class metadata during member lookup (#​29864)
  • Reuse constructor bindings and defer looking up enclosing type variables (#​29897)
  • Reuse generic argument contexts across calls (#​29877)
  • Reuse inferred annotations when checking function returns (#​29879)
  • Reuse inherited override checks across subclasses (#​29867)
  • Reuse parameter unions when filtering overloads (#​29823)
  • Short-circuit equivalence checks against Never (#​29862)
  • Skip generic call inference when only a concrete receiver's Self needs binding (#​29747)
  • Skip unrelated statement calls when checking a single condition (#​29826)
  • Stop scanning package initializers once a legacy namespace declaration is found (#​29885)
Memory usage improvements
  • Prevent exponential memory growth when narrowing unions of intersections by equality (#​29904)
Contributors

v0.0.95

Compare Source

Released on 2026-10-29.

Bug fixes
  • Accept another unpacked TypeVarTuple as a default (#​29752)
  • Accept keyword arguments for TypeAliasType name and value (#​29802)
  • Detect traversal budget exhaustion in products of lower bounds (#​29679)
  • Fix recursive protocol materialization self-comparison (#​29809)
  • Reject out-of-scope type variables in PEP 695 pack defaults (#​29805)
  • Use a trailing ParamSpec default after a TypeVarTuple (#​29755)
LSP server
  • Parenthesize assignment and generator expressions in argument hint edits (#​29797)
  • Place argument name inlay hints before grouping parentheses (#​29794)
  • Place variable type inlay hints after grouping parentheses (#​29795)
Contributors

v0.0.94

Compare Source

Released on 2026-10-28.

Bug fixes
  • Correctly handle line continuation when fixing unused ignore comments (#​29781)
  • Fix Linux x86-64 startup on older kernels (#​4853)
  • Fix a panic when a comprehension filter depends on a later binding (#​29786)
  • Fix a panic when sorting diagnostics without a source location (#​29780)
  • Fix panic on a chained assignment with a missing value (#​29787)
  • Reject defaulted TypeVars after a TypeVarTuple in legacy generic classes (#​29753)
Other changes
  • Django: suppress invalid-override errors for Meta configurations (#​29769)
Contributors

v0.0.93

Compare Source

Released on 2026-10-28.

Preview features
  • Add diagnostic baselines to help adopt ty in projects with existing errors (#​27636). Configure a baseline in pyproject.toml:

    [tool.ty]
    baseline = "ty-baseline.json"

    Run ty check --update-baseline to record existing diagnostics. Subsequent checks filter matching diagnostics from CLI output and show them as hints in the language server. The baseline format may change while the feature is in preview.

Bug fixes
  • Fix a panic when checking truthiness in a loop (#​29759)
  • Fix hang when negating recursive unions of instance types (#​29652)
Core type checking
  • Avoid synthesizing primary keys for abstract Django models (#​29744)
  • Combine constraints from repeated ParamSpecs (#​29172)
  • Fix narrowing of strings and integers compared with enum members (#​29743)
  • Honor @override on overload implementations in stubs (#​29470)
  • Preserve caller type variables in nested union inference (#​29611)
  • Preserve generic callback specializations during return refinement (#​29667)
  • Preserve mapping capture types on narrowed subjects (#​29749)
  • Preserve narrowing after guarded match subject captures (#​29558)
  • Preserve string literals in comparisons with LiteralString (#​29741)
  • Remove covered exclusions from unions (#​29615)
Performance
  • Avoid replaying conditions in long boolean expressions (#​29754)
  • Index nominal union alternatives (#​29196)
  • Normalize runtime unions on demand (#​29727)
  • Optimize Linux x86-64 ty releases with LLVM BOLT (#​4833)
  • Record predicate truthiness alongside expression inference (#​29706)
  • Reuse exception checkpoints when a new place is read (#​29750)
  • Reuse runtime operands in eager union annotations (#​29770)
  • Reuse tuple pattern analysis work (#​29197)
  • Skip predicates that cannot affect narrowing (#​29736)
  • Speed up match narrowing over large unions (#​29733)
Contributors

v0.0.92

Compare Source

Released on 2026-10-26.

Core type checking
  • Infer the types of Django model primary keys (pk and the automatic id) with django-types (#​29642)
  • Infer Django foreign key <field>_id types from the referenced field (#​29664)
  • Recognize get_<field>_display() on Django model fields with choices (#​29651)
  • Recognize get_next_by_<field>() and get_previous_by_<field>() on non-nullable Django date and datetime fields (#​29653)
Bug fixes
  • Preserve generic callback parameters when forwarding overloaded functions through a ParamSpec (#​29649)
  • Check implicit and PEP 613 type aliases as type expressions at their definitions (#​29200)
CLI
  • Emit SARIF reports with ty check --output-format sarif (#​29635)
LSP server
  • Skip scanning for scripts at startup and reload when uv script environments are disabled (#​29697)
Diagnostic improvements
  • Abbreviate large nested tuple types in diagnostics and inlay hints (#​29691)
  • Point to the expression that makes a type alias invalid, even when the alias is imported (#​29654)
Performance
  • Avoid redundant work when checking inherited attributes (#​29699)
  • Check for instance storage without inferring method assignments (#​29709)
  • Collect receiver annotations once per class (#​29703)
  • Check non-recursive protocol members before recursive ones (#​29542)
  • Reuse class member lookups when checking overrides (#​29716)
  • Reuse each generic context's inferable type variables (#​29700)
  • Short-circuit comparisons involving top and bottom callable signatures (#​29537)
  • Skip inferred writes when a declaration determines an instance member (#​29702)
  • Skip method signature inference for concrete decorator results (#​29708)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

♻ 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.

@nepeat
nepeat merged commit e8c5ff8 into main Nov 3, 2026
9 of 10 checks passed
@renovate
renovate Bot deleted the renovate/ty-0.x branch November 3, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant