| ▲ | sharkdp 5 days ago | |||||||
We should generally support TypeDicts. Can you go into more details of what is not working for you? | ||||||||
| ▲ | pcwelder 5 days ago | parent [-] | |||||||
``` 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) | ||||||||
| ||||||||