We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally opened in https://bugs.python.org/issue46066. Related discussion: python/mypy#2492
According to the documentation, there are two additional equivalent syntax for TypedDict definition:
Point2D = TypedDict('Point2D', x=int, y=int, label=str) Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str})
However, the former one is quite confusing since we have the total keyword arg for TypedDict. In addition, PEP589 doesn't have this syntax.
total
I think we could just deprecated it and remove it from the doc.
The text was updated successfully, but these errors were encountered:
bpo-46066: Deprecate kwargs syntax for TypedDict definitions (GH-31126)
de6043e
Closes python/typing#981 https://bugs.python.org/issue46066
Successfully merging a pull request may close this issue.
Originally opened in https://bugs.python.org/issue46066.
Related discussion: python/mypy#2492
According to the documentation, there are two additional equivalent syntax for TypedDict definition:
However, the former one is quite confusing since we have the
total
keyword arg for TypedDict. In addition, PEP589 doesn't have this syntax.I think we could just deprecated it and remove it from the doc.
The text was updated successfully, but these errors were encountered: