-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
astral-sh/ruff
#22837Labels
serverRelated to the LSP serverRelated to the LSP server
Milestone
Description
Summary
Pyright supports hover info for TypedDict key accesses. For example:
class Person(TypedDict):
"""A person in the database"""
name: str
"""The person's full legal name"""
person = Person(name="Sarah Stevens")
print(person["name"])Hovering over "name" on the last line shows the declared type and docstring for the name field:

This relates to #2189 (autocomplete for TypedDict keys)
(Thank you Alex and Micha)
Version
0.0.11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
serverRelated to the LSP serverRelated to the LSP server