News for hackers. Stuff that matters.
Re:Ty: A fast Python type checker and LSP by sharkdp on Wednesday December 17, 2025 @01:44AM (#46298954)
We should generally support TypeDicts. Can you go into more details of what is not working for you?
Re:Ty: A fast Python type checker and LSP by pcwelder on Wednesday December 17, 2025 @03:36AM (#46299570)
```

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)

Re:Ty: A fast Python type checker and LSP by sharkdp on Wednesday December 17, 2025 @04:59AM (#46300074)
Thank you!

I reported this as https://github.com/astral-sh/ty/issues/1994

Support for auto-completing TypedDict keys is tracked here: https://github.com/astral-sh/ty/issues/86