Skip to content

Missing hover on attribute assignment in __init__ #4986

Description

@trashpan

Describe the Bug

Hover on the LHS of self.name = name (line 3) shows "No information available", while hovering on name on the RHS works fine. This is the attribute-access variant of #918, which was fixed for local variables but not for self.attr targets.

Sandbox Link

https://pyrefly.org/sandbox/?project=v2.pVQxCsMwDPyKwIOXUu19RR7QwaExSRcrxG7p83uS20ACzpJJICQh3emuZZlVKh1OkdRWihJmmmuqRCuwuAVylIQmdS4CPmEtCBeKnxlYxAHZsgS7b4euo64m6LcofAW0jC-4F-C-3pODcUWaSpnzjfnfLsvIMfEgj8ybDiZ9pP7dP80Tt-NI7Bsyxp6h1VdW_RGpXjlFxSFPXw

(Only applicable for extension issues) IDE Information

No response

Activity

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

Metadata

Metadata

Labels

language-serverIssues specific to our IDE integration rather than type checking

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions