-
Notifications
You must be signed in to change notification settings - Fork 768
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
Generic type aliases show two inlay hints #6427
Labels
bug
Something isn't working
fixed in next version (release)
A fix has been implemented and will appear in an upcoming version
Comments
debonte
added
bug
Something isn't working
and removed
needs repro
Issue has not been reproduced yet
labels
Sep 23, 2024
@StellaHuang95, reassigned to you. Given that this regressed in 2024.8.101, I'm guessing this has something to do with the inlay hint go to def feature. |
StellaHuang95
added
the
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
label
Sep 24, 2024
bschnurr
added
fixed in next version (release)
A fix has been implemented and will appear in an upcoming version
and removed
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
labels
Sep 26, 2024
This issue has been fixed in prerelease version 2024.9.102, which we've just released. You can find the changelog here: CHANGELOG.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
fixed in next version (release)
A fix has been implemented and will appear in an upcoming version
Generic type aliases show two inlay hints that each function independently, with no visual separation between them. I'm not sure if it's just restricted to type aliases with generics, but I first noticed it happening when hints from numpy functions such as
np.array(3)
would be things likeAnyndarray[Any, dtype[Any]]
. I tried to reduce it down to a minimal example from there.Environment data
Code Snippet
Expected behavior
I'd expect only the second inlay hint to be present, for example
a: list
andb: list[int]
.Actual behavior
(Previous) Behavior in 2024.8.100:
(Current) Behavior from 2024.8.101 to 2024.9.101:
Logs
The text was updated successfully, but these errors were encountered: