Pyupgrade recommends: ``` import asyncio from typing import Annotated, Literal, TypedDict import dotenv from typing_extensions import Doc ``` As everything but Doc has been in typing since 3.8 or 3.9: https://docs.python.org/3/library/typing.html#typing.Literal Apparently Doc is non-standard, interesting discussion on the PEP here: https://discuss.python.org/t/pep-727-documentation-metadata-in-typing/32566/172 It seems unlikely to get accepted, but I assume its the only way to document when using TypedDict? That's what I saw in the examples.
Pyupgrade recommends:
As everything but Doc has been in typing since 3.8 or 3.9:
https://docs.python.org/3/library/typing.html#typing.Literal
Apparently Doc is non-standard, interesting discussion on the PEP here:
https://discuss.python.org/t/pep-727-documentation-metadata-in-typing/32566/172
It seems unlikely to get accepted, but I assume its the only way to document when using TypedDict? That's what I saw in the examples.