top | item 46298924

(no title)

pcwelder | 2 months ago

Displaying inferred types inline is a killer feature (inspired from rust lang server?). It was a pleasant surprise!

It's fast too as promised.

However, it doesn't work well with TypedDicts and that's a show-stopper for us. Hoping to see that support soon.

discuss

order

sharkdp|2 months ago

We should generally support TypeDicts. Can you go into more details of what is not working for you?

pcwelder|2 months ago

```

from anthropic.types import MessageParam

data: list[MessageParam] = [{"role": "user", "content": [{"type": "text", "text": ""}]}]

```

This for example works both in mypy and pyright. (Also autocompletion of typedict keys / literals from pylance is missing)