Bug report
Bug description:
With 3.14.0a3 there is an issue which affects all of the building block packages: setuptools, pip, wheel, causing failure to build of over 2800 packages in Fedora Linux total.
In cases I explored, the issue appears when importing classes derived from NamedTuple.
To reproduce in the Python 3.14.0a3 interpreter:
>>>importsetuptools.package_indexTraceback (mostrecentcalllast):
File"<python-input-18>", line1, in<module>importsetuptools.package_indexFile"/usr/lib/python3.14/site-packages/setuptools/package_index.py", line1005, in<module>classCredential(NamedTuple):
...<12lines>...
returnf'{self.username}:{self.password}'File"/usr/lib64/python3.14/typing.py", line2971, in__new__types=annotationlib.call_annotate_function(original_annotate, annotationlib.Format.FORWARDREF)
File"/usr/lib64/python3.14/annotationlib.py", line613, incall_annotate_functionresult=func(Format.VALUE_WITH_FAKE_GLOBALS)
File"/usr/lib/python3.14/site-packages/setuptools/package_index.py", line1005, in__annotate__classCredential(NamedTuple):
NotImplementedErrorThe class in question looks like this: https://github.com/pypa/setuptools/blob/main/setuptools/package_index.py#L1003
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
With 3.14.0a3 there is an issue which affects all of the building block packages: setuptools, pip, wheel, causing failure to build of over 2800 packages in Fedora Linux total.
In cases I explored, the issue appears when importing classes derived from NamedTuple.
To reproduce in the Python 3.14.0a3 interpreter:
The class in question looks like this: https://github.com/pypa/setuptools/blob/main/setuptools/package_index.py#L1003
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs