Skip to content
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

Don't show inlays for constructors #189

Open
KotlinIsland opened this issue Mar 24, 2024 · 2 comments
Open

Don't show inlays for constructors #189

KotlinIsland opened this issue Mar 24, 2024 · 2 comments

Comments

@KotlinIsland
Copy link
Collaborator

KotlinIsland commented Mar 24, 2024

class A: ...
a = A()

class B[T]: ...
b = B[int]()

The inlay here is useless noise.

@DetachHead
Copy link
Owner

the inlay hints should probably still be present if it's inferring a generic from a non-literal value

class Foo[T]:
    ...

value: int = 1

foo = Foo(value) # should have an inlay hint of `Foo[int]`

@DetachHead
Copy link
Owner

or maybe not, now that we have an inlay hint for the call (#818)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants