Skip to content

Provide autocompletions for TypedDict keys #274

@marovira

Description

@marovira

I'm using Zuban 0.4.2 in NeoVim installed through Mason.
When typing the keys of a TypedDict Zuban does not offer completions for the keys. On a clean virtual environment, create an empty file called test.py and enter the following:

from typing import TypedDict

class TestDict(TypedDict):
    foo: str
    bar: str
    baz:str

data = TestDict(foo="foo", bar="bar", baz="baz")

Now, using pylsp, see that completions are offered when entering the names of the keys:

Image

However if I use Zuban, see that no completions are offered for the keys:

Image

This seems like a big usability improvement for Zuban, as currently ty doesn't implement this either, so I'm currently having to fallback to pylsp to continue working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LSPfeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions