This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author 97littleleaf11
Recipients 97littleleaf11, docs@python
Date 2021-12-13.15:36:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639409817.42.0.21314101687.issue46066@roundup.psfhosted.org>
In-reply-to
Content
According to the docs: https://docs.python.org/3/library/typing.html?#typing.TypedDict, 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(https://www.python.org/dev/peps/pep-0589/#id19) doesn't have this.

I think we could discard the definition syntax using keyword args in the doc.
History
Date User Action Args
2021-12-13 15:36:5797littleleaf11setrecipients: + 97littleleaf11, docs@python
2021-12-13 15:36:5797littleleaf11setmessageid: <1639409817.42.0.21314101687.issue46066@roundup.psfhosted.org>
2021-12-13 15:36:5797littleleaf11linkissue46066 messages
2021-12-13 15:36:5797littleleaf11create