We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from typing import Callable, reveal_type class A[**P, R]: @classmethod def from_fn(cls, fn: Callable[P, R]) -> "A[P, R]": ... def f(a: int) -> str: ... b = A[[int], str].from_fn(f) reveal_type(b) # Type of "b" is "A[(int), str]"
The inlay hint should be shown like A[(int), str].
A[(int), str]
The inlay hint is shown like A[Callable[[int], Any], str].
A[Callable[[int], Any], str]
The text was updated successfully, but these errors were encountered:
bschnurr
No branches or pull requests
Environment data
Code Snippet
Expected behavior
The inlay hint should be shown like
A[(int), str]
.Actual behavior
The inlay hint is shown like
A[Callable[[int], Any], str]
.The text was updated successfully, but these errors were encountered: