chore(deps): update dependency ty to v0.0.33#1588
Merged
renovate[bot] merged 1 commit intomainfrom Apr 28, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1588 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 37 37
Lines 1332 1332
Branches 71 71
=======================================
Hits 1331 1331
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.0.32→==0.0.33Release Notes
astral-sh/ty (ty)
v0.0.33Compare Source
Released on 2026-04-28.
Breaking changes
ty now prefers the declared type of an annotated assignment in more situations (#24802).
Consider this example:
ty previously favored the inferred type of the right hand side expression when
thresholdandresultwere used. This is useful forthreshold, as it allows something likethreshold += 1to work without an error: we know thatthresholdcould later becomeNone, but right now, we see that it is anint. However, forresult, the inferred type isUnknown. This is not a useful type and it can lead to false negatives. Starting with this release, ty will therefore preferthe declared type if the inferred and declared types are mutually assignable. In the above example,
thresholdwill still be inferred asint(or ratherLiteral[1]), butresultwill now be inferred asstr. If you previously addedcasts to work around this behavior, you should be able to remove them after upgrading.Bug fixes
LSP server
Core type checking
finallyblocks where alltry/exceptblocks are terminal (#24882)ClassVarvs instance-attribute overrides (#24767)Unpack[...](#24868)Callabletype context (#24317)**unpacking ofTypedDictin dict-literal assignments (#24703)Unpack[TypedDict]in**kwargssignatures (#24653)[*xs]as an irrefutable pattern when matching onSequence(#24787)Diagnostics
invalid-return-typediagnostics,invalid-yielddiagnostics, attribute assignment diagnostics (#24770, #24771)dictassignment error diagnostics (#24768)invalid-keydiagnostics for unions of TypedDicts (#24693)invalid-type-formdiagnostics for PEP-613 type alias values (#24760)Performance
Other changes
Contributors
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.