Skip to content

Missing Language Server Features (autocomplete & inlay hints) #306

@munro

Description

@munro

There are a lot of things that are working, so this is a really great extension! But I noticed some helpful features are still missing.

Autocomplete on imports

It would be really nice if we could autocomplete imports from mypy!

mypy

image

pylance

image

Autocomplete on objects

This may be relayed to the previous, but also getting autocompletes on objects as well

mypy

image

pylance

image

Inlay hints

Inlay hint support would be really great too 🥲

image

mypy

(notice no inlay hints)
image

pylance

image

String interpolation shows wrong type

And this was a subtle issue I noticed, it shows the wrong type when hovering over a variable used in string interpolation.

  • (variable) foo: int is from PyLance
  • and mypy: str is from MyPy.

foo is an int, so it should show int. It appares mypy is showing the coerced type of the variable.

image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtriage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions