cpython/Misc/NEWS.d/next/Library/2023-11-09-11-07-34.gh-issu...

5 lines
235 B
ReStructuredText

When creating a :class:`typing.NamedTuple` class, ensure
:func:`~object.__set_name__` is called on all objects that define
``__set_name__`` and exist in the values of the ``NamedTuple`` class's class
dictionary. Patch by Alex Waygood.