https://bugzilla.redhat.com/show_bug.cgi?id=2275067
Bug ID: 2275067 Summary: python-typeguard fails to build with Python 3.13: TypeError: TypedDict does not support instance and class checks Product: Fedora Version: rawhide Status: NEW Component: python-typeguard Assignee: code@musicinmybrain.net Reporter: ksurma@redhat.com QA Contact: extras-qa@fedoraproject.org CC: code@musicinmybrain.net, davide@cavalca.name, epel-packagers-sig@lists.fedoraproject.org, ksurma@redhat.com, mhroncok@redhat.com, michel@michel-slm.name Blocks: 2244836 (PYTHON3.13) Target Milestone: --- Classification: Fedora
python-typeguard fails to build with Python 3.13.0a6.
____________ TestTypedDict.test_notrequired_fail[typing_extensions] ____________ tests/test_checkers.py:531: in test_notrequired_fail check_type({"x": 1, "y": "foo"}, DummyDict) ../../BUILDROOT/python-typeguard-4.2.1-2.fc41.x86_64/usr/lib/python3.13/site-packages/typeguard/_functions.py:106: in check_type check_type_internal(value, expected_type, memo) ../../BUILDROOT/python-typeguard-4.2.1-2.fc41.x86_64/usr/lib/python3.13/site-packages/typeguard/_checkers.py:783: in check_type_internal if not isinstance(value, origin_type): /usr/lib/python3.13/site-packages/typing_extensions.py:951: in __subclasscheck__ raise TypeError('TypedDict does not support instance and class checks') E TypeError: TypedDict does not support instance and class checks
============= 11 failed, 432 passed, 4 skipped, 6 xfailed in 5.84s =============
https://docs.python.org/3.13/whatsnew/3.13.html
For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-ra...
For all our attempts to build python-typeguard with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-t...
Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/
Let us know here if you have any questions.
Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836 [Bug 2244836] Python 3.13