-
Notifications
You must be signed in to change notification settings - Fork 2k
[ty] report unused bindings as unnecessary hint diagnostics #23305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MichaReiser
merged 22 commits into
astral-sh:main
from
denyszhak:feat/unused-binding-diagnostics
Mar 27, 2026
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b4c8f25
ty: report unused bindings as unnecessary hint diagnostics
denyszhak 34f5f97
ty: guard analysis when errors reported like during partial assignment
denyszhak 3a4f0ee
ty: refactor to derive unused-binding diagnostics from use-def map
denyszhak 683ee63
ty: tiny readability improvements
denyszhak ecfeea3
ty: use method pointer for except-handler binding range
denyszhak 8fc2ebd
ty: improve unused-binding capture for enclosed scope and more tests
denyszhak 9dc375b
ty: introduce hint diagnostics and use them for unused bindings
denyszhak ac252e5
ty: fixes per feedback
denyszhak 9351aca
ty: move unused_bindings to ide_support and cleanup
denyszhak 04ad9fd
ty: get rid of Hint diagnostic
denyszhak c34ebad
ty: small cleanup
denyszhak 1d31823
[ty] fix several false positives and some minor fixes
denyszhak 4a8fd05
[ty] func name change
denyszhak 6bab05a
[ty] move unused_bindings to it's separate module, plus few more fixes
denyszhak e0f6300
[ty] move override suppression to loop and compute lazily
denyszhak 67418d4
[ty] cover overload for module level, omit lsp code reporting
denyszhak f02d9b6
Update crates/ty_python_semantic/src/types/ide_support.rs
denyszhak 183cff0
[ty] get back to module alias
denyszhak 7a8c1b1
[ty] don't quit early on parsing errors
denyszhak 51a2da1
[ty] we publish unused-bindings for notebooks even when syntax errors…
denyszhak c7a1d99
[ty] refactor for shared api
denyszhak 2d07cfa
[ty] don't apply override supression
denyszhak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.