You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Align the experimental InlineTypedDict feature with the PEP 764 specification.
Pitch
The current experimental InlineTypedDict syntax in mypy allows for concise inline TypedDict definitions, but it does not fully conform to the PEP 764. Updating this feature to adhere to PEP 764 would ensure consistency with the official Python typing standards and enhance compatibility across type checkers and codebases.
From offline discussion with @ilevkivskyi, we're OK adding support for the PEP 764 syntax but we'd like to keep the existing syntax as a mypy-specific extension.
Feature
Align the experimental InlineTypedDict feature with the PEP 764 specification.
Pitch
The current experimental InlineTypedDict syntax in mypy allows for concise inline TypedDict definitions, but it does not fully conform to the PEP 764. Updating this feature to adhere to PEP 764 would ensure consistency with the official Python typing standards and enhance compatibility across type checkers and codebases.
Example of the PEP 764 syntax:
The text was updated successfully, but these errors were encountered: