Skip to content

chore(uv): update ty requirement from >=0.0.32 to >=0.0.33#232

Merged
a5chin merged 1 commit intodevelopfrom
dependabot/pip/ty-gte-0.0.33
May 2, 2026
Merged

chore(uv): update ty requirement from >=0.0.32 to >=0.0.33#232
a5chin merged 1 commit intodevelopfrom
dependabot/pip/ty-gte-0.0.33

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 28, 2026

Updates the requirements on ty to permit the latest version.

Release notes

Sourced from ty's releases.

0.0.33

Release Notes

Released on 2026-04-28.

Notable changes

  • ty now prefers the declared type of an annotated assignment in more situations (#24802). Consider this example:

    from some_library import untyped_function
    threshold: int | None = 0
    result: str = untyped_function()

    ty previously favored the inferred type of the right hand side expression when threshold and result were used. This is useful for threshold, as it allows something like threshold += 1 to work without an error: we know that threshold could later become None, but right now, we see that it is an int. However, for result, the inferred type is Unknown. This is not a useful type and it can lead to false negatives. Starting with this release, ty will therefore prefer the declared type if the inferred and declared types are mutually assignable. In the above example, threshold will still be inferred as int (or rather Literal[1]), but result will now be inferred as str. If you previously added casts to work around this behavior, you should be able to remove them after upgrading.

Bug fixes

  • Fix reporting of annotation-only locals as unused (#24811)
  • Fix project and workspace selection (#24824)
  • Fix go-to definition for generic classes (#24714)
  • Fix receiver coloring for aliased decorators (#24884)

LSP server

  • Add support for go-to definition in literal enum member inlay hints (#24792)
  • Add support for "baking" keyword argument inlay hints into the source code (#24667)
  • Don't allow inlay hint edits when introducing a non global scope symbol (#24797)
  • Omit semantic highlighting for unresolved symbols (#24718)

Core type checking

  • Support narrowing with aliased conditional expressions (#24302)
  • Model short-circuiting control flow in Boolean expressions (#24458)
  • Handle finally blocks where all try/except blocks are terminal (#24882)
  • Detect invalid ClassVar vs instance-attribute overrides (#24767)
  • Emit diagnostic for invalid uses of Unpack[...] (#24868)
  • Infer lambda parameter types with Callable type context (#24317)
  • Support ** unpacking of TypedDict in dict-literal assignments (#24703)
  • Support Unpack[TypedDict] in **kwargs signatures (#24653)
  • Treat [*xs] as an irrefutable pattern when matching on Sequence (#24787)
  • Improve generics solving for unions in invariant positions (#24698)
  • Improve generics solving for unions when matching against protocols (#24837)

Diagnostics

... (truncated)

Changelog

Sourced from ty's changelog.

0.0.33

Released on 2026-04-28.

Notable changes

  • ty now prefers the declared type of an annotated assignment in more situations (#24802). Consider this example:

    from some_library import untyped_function
    threshold: int | None = 0
    result: str = untyped_function()

    ty previously favored the inferred type of the right hand side expression when threshold and result were used. This is useful for threshold, as it allows something like threshold += 1 to work without an error: we know that threshold could later become None, but right now, we see that it is an int. However, for result, the inferred type is Unknown. This is not a useful type and it can lead to false negatives. Starting with this release, ty will therefore prefer the declared type if the inferred and declared types are mutually assignable. In the above example, threshold will still be inferred as int (or rather Literal[1]), but result will now be inferred as str. If you previously added casts to work around this behavior, you should be able to remove them after upgrading.

Bug fixes

  • Fix reporting of annotation-only locals as unused (#24811)
  • Fix project and workspace selection (#24824)
  • Fix go-to definition for generic classes (#24714)
  • Fix receiver coloring for aliased decorators (#24884)

LSP server

  • Add support for go-to definition in literal enum member inlay hints (#24792)
  • Add support for "baking" keyword argument inlay hints into the source code (#24667)
  • Don't allow inlay hint edits when introducing a non global scope symbol (#24797)
  • Omit semantic highlighting for unresolved symbols (#24718)

Core type checking

  • Support narrowing with aliased conditional expressions (#24302)
  • Model short-circuiting control flow in Boolean expressions (#24458)
  • Handle finally blocks where all try/except blocks are terminal (#24882)
  • Detect invalid ClassVar vs instance-attribute overrides (#24767)
  • Emit diagnostic for invalid uses of Unpack[...] (#24868)
  • Infer lambda parameter types with Callable type context (#24317)
  • Support ** unpacking of TypedDict in dict-literal assignments (#24703)
  • Support Unpack[TypedDict] in **kwargs signatures (#24653)
  • Treat [*xs] as an irrefutable pattern when matching on Sequence (#24787)
  • Improve generics solving for unions in invariant positions (#24698)
  • Improve generics solving for unions when matching against protocols (#24837)

Diagnostics

  • Add error context to invalid-return-type diagnostics, invalid-yield diagnostics, attribute assignment diagnostics (#24770, #24771)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2c201e6) to head (2aeb23d).
⚠️ Report is 6 commits behind head on develop.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop      #232   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          103       103           
  Branches         1         1           
=========================================
  Hits           103       103           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c201e6...2aeb23d. Read the comment docs.

Updates the requirements on [ty](https://github.com/astral-sh/ty) to permit the latest version.
- [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.32...0.0.33)

---
updated-dependencies:
- dependency-name: ty
  dependency-version: 0.0.33
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/ty-gte-0.0.33 branch from beef1fd to 2aeb23d Compare April 29, 2026 15:12
@a5chin a5chin merged commit 9fd5143 into develop May 2, 2026
16 checks passed
@a5chin a5chin deleted the dependabot/pip/ty-gte-0.0.33 branch May 2, 2026 15:57
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.

1 participant