-
Notifications
You must be signed in to change notification settings - Fork 766
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
semantic highlight and hints for a TypedDict's get function. #4098
Comments
…method for TypedDict). This partly addresses microsoft/pylance-release#4098.
The problem is that the I've updated the hover provider in the pyright code base to better handle this case. The semantic token provider in the pylance code base will likewise need to be updated to handle the case where there are no declarations but there is a synthesized type associated with the symbol. |
Any updates on this? It appears it's still not behaving as expected. |
I believe it's still being discussed on what to do: |
This issue has been fixed in prerelease version 2024.11.100, which we've just released. You can find the changelog here: CHANGELOG.md |
Environment data
Code Snippet
Repro Steps
get
part to see the type hint.Expected behavior
get
function should be colored as such.Actual behavior
get
function is uncolored.get: Overload[(k: Literal['a']) -> int, (k: Literal['a'], default: Any) -> int, (k: Literal['b']) -> str, (k: Literal['b'], default: Any) -> str, (k: str) -> (Any | None), (k: str, default: __TDefault@Cls) -> (Any | __TDefault@Cls)])
.The text was updated successfully, but these errors were encountered: