From: Michael R. Crusoe <crusoe@debian.org>
Subject: skip introspecting __annotations__ on Python 3.14+

PEP 649 changed how __annotations__ works, and mypy-extensions has yet to
update to match. It might not update, as mypy_extensions.TypedDict is deprecated
in favor of typing.TypedDict (in Python stdlib since 3.8) or
typing_extensions.TypedDict (from version 4.3+; version 4.13 with support for
PEP 728 (from Python 3.15) is already in Debian Trixie).

See https://github.com/python/mypy_extensions/issues/65

--- python-mypy-extensions.orig/tests/testextensions.py
+++ python-mypy-extensions/tests/testextensions.py
@@ -102,7 +102,8 @@
     def test_py36_class_syntax_usage(self):
         self.assertEqual(LabelPoint2D.__name__, 'LabelPoint2D')  # noqa
         self.assertEqual(LabelPoint2D.__module__, __name__)  # noqa
-        self.assertEqual(LabelPoint2D.__annotations__, {'x': int, 'y': int, 'label': str})  # noqa
+        if sys.version_info < (3, 14):
+            self.assertEqual(LabelPoint2D.__annotations__, {'x': int, 'y': int, 'label': str})  # noqa
         self.assertEqual(LabelPoint2D.__bases__, (dict,))  # noqa
         self.assertEqual(LabelPoint2D.__total__, True)  # noqa
         self.assertNotIsSubclass(LabelPoint2D, typing.Sequence)  # noqa
