Import `Literal` from the typing module by tomasr8 · Pull Request #1175 · python-babel/babel
typing.Literal was added in 3.8. We can import it directly instead of relying on typing_extensions.
Edit: TypedDict as well
cc @akx
akx approved these changes Jan 25, 2025
akx
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quite literal!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters