- Notifications
You must be signed in to change notification settings - Fork 285
Closed
python/cpython
#31126Labels
topic: otherOther topics not coveredOther topics not covered
Description
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.
I think we could just deprecated it and remove it from the doc.
AlexWaygood, hauntsaninja, erictraut, MathiasSven, ichard26 and 1 more
Metadata
Metadata
Assignees
Labels
topic: otherOther topics not coveredOther topics not covered