Title: Unit tests fails on Python 3.15.0b1 · Issue #759 · python/typing_extensions · GitHub
Open Graph Title: Unit tests fails on Python 3.15.0b1 · Issue #759 · python/typing_extensions
X Title: Unit tests fails on Python 3.15.0b1 · Issue #759 · python/typing_extensions
Description: Latest main: 7ce55df See also https://bugzilla.redhat.com/show_bug.cgi?id=2477406 for failure on release 4.15.0 jonny in typing_extensions/src on main [!⇡] via 🐍 v3.14.5 ❯ /home/jonny/Downloads/Python-3.15.0b1/python -m unittest discov...
Open Graph Description: Latest main: 7ce55df See also https://bugzilla.redhat.com/show_bug.cgi?id=2477406 for failure on release 4.15.0 jonny in typing_extensions/src on main [!⇡] via 🐍 v3.14.5 ❯ /home/jonny/Downloads/P...
X Description: Latest main: 7ce55df See also https://bugzilla.redhat.com/show_bug.cgi?id=2477406 for failure on release 4.15.0 jonny in typing_extensions/src on main [!⇡] via 🐍 v3.14.5 ❯ /home/jonny/Downloads/P...
Opengraph URL: https://github.com/python/typing_extensions/issues/759
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unit tests fails on Python 3.15.0b1","articleBody":"Latest main: 7ce55df0bc965c6605dd89bdb4da91610624290a\n\nSee also https://bugzilla.redhat.com/show_bug.cgi?id=2477406 for failure on release 4.15.0\n```\njonny in typing_extensions/src on main [!⇡] via 🐍 v3.14.5\n❯ /home/jonny/Downloads/Python-3.15.0b1/python -m unittest discover\n..............................................................................................................................................EEEE................................................s....ss....s............................E....F.................................................................................................................................................................EE.......................s.................................s.......................................F...s.s...ss......ssss.....s...............................s........F.....\n======================================================================\nERROR: test_annotation_and_optional_default (test_typing_extensions.GetTypeHintTests.test_annotation_and_optional_default) (annotation='typing.Unpack[~Ts]', as_str=True, wrap_optional=False, none_default=False, expected_type_hints={'x': typing.Unpack[~Ts]})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 1823, in test_annotation_and_optional_default\n type_hints = get_type_hints(func, globals(), locals(), include_extras=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 2503, in get_type_hints\n value = _eval_type(value, globalns, localns, (), format=format, owner=obj, prefer_fwd_module=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 475, in _eval_type\n return evaluate_forward_ref(t, globals=globalns, locals=localns,\n type_params=type_params, owner=owner,\n _recursive_guard=recursive_guard, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 1041, in evaluate_forward_ref\n value = forward_ref.evaluate(globals=globals, locals=locals,\n type_params=type_params, owner=owner, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/annotationlib.py\", line 207, in evaluate\n return eval(code, globals=globals, locals=locals)\n File \"\u003cstring>\", line 1, in \u003cmodule>\nTypeError: bad operand type for unary ~: 'typing.TypeVarTuple'\n\n======================================================================\nERROR: test_annotation_and_optional_default (test_typing_extensions.GetTypeHintTests.test_annotation_and_optional_default) (annotation='typing.Unpack[~Ts] | None', as_str=True, wrap_optional=True, none_default=False, expected_type_hints={'x': typing.Unpack[~Ts] | None})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 1823, in test_annotation_and_optional_default\n type_hints = get_type_hints(func, globals(), locals(), include_extras=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 2503, in get_type_hints\n value = _eval_type(value, globalns, localns, (), format=format, owner=obj, prefer_fwd_module=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 475, in _eval_type\n return evaluate_forward_ref(t, globals=globalns, locals=localns,\n type_params=type_params, owner=owner,\n _recursive_guard=recursive_guard, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 1041, in evaluate_forward_ref\n value = forward_ref.evaluate(globals=globals, locals=locals,\n type_params=type_params, owner=owner, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/annotationlib.py\", line 207, in evaluate\n return eval(code, globals=globals, locals=locals)\n File \"\u003cstring>\", line 1, in \u003cmodule>\nTypeError: bad operand type for unary ~: 'typing.TypeVarTuple'\n\n======================================================================\nERROR: test_annotation_and_optional_default (test_typing_extensions.GetTypeHintTests.test_annotation_and_optional_default) (annotation='typing.Unpack[~Ts]', as_str=True, wrap_optional=False, none_default=True, expected_type_hints={'x': typing.Unpack[~Ts]})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 1823, in test_annotation_and_optional_default\n type_hints = get_type_hints(func, globals(), locals(), include_extras=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 2503, in get_type_hints\n value = _eval_type(value, globalns, localns, (), format=format, owner=obj, prefer_fwd_module=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 475, in _eval_type\n return evaluate_forward_ref(t, globals=globalns, locals=localns,\n type_params=type_params, owner=owner,\n _recursive_guard=recursive_guard, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 1041, in evaluate_forward_ref\n value = forward_ref.evaluate(globals=globals, locals=locals,\n type_params=type_params, owner=owner, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/annotationlib.py\", line 207, in evaluate\n return eval(code, globals=globals, locals=locals)\n File \"\u003cstring>\", line 1, in \u003cmodule>\nTypeError: bad operand type for unary ~: 'typing.TypeVarTuple'\n\n======================================================================\nERROR: test_annotation_and_optional_default (test_typing_extensions.GetTypeHintTests.test_annotation_and_optional_default) (annotation='typing.Unpack[~Ts] | None', as_str=True, wrap_optional=True, none_default=True, expected_type_hints={'x': typing.Unpack[~Ts] | None})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 1823, in test_annotation_and_optional_default\n type_hints = get_type_hints(func, globals(), locals(), include_extras=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 2503, in get_type_hints\n value = _eval_type(value, globalns, localns, (), format=format, owner=obj, prefer_fwd_module=True)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 475, in _eval_type\n return evaluate_forward_ref(t, globals=globalns, locals=localns,\n type_params=type_params, owner=owner,\n _recursive_guard=recursive_guard, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/typing.py\", line 1041, in evaluate_forward_ref\n value = forward_ref.evaluate(globals=globals, locals=locals,\n type_params=type_params, owner=owner, format=format)\n File \"/home/jonny/Downloads/Python-3.15.0b1/Lib/annotationlib.py\", line 207, in evaluate\n return eval(code, globals=globals, locals=locals)\n File \"\u003cstring>\", line 1, in \u003cmodule>\nTypeError: bad operand type for unary ~: 'typing.TypeVarTuple'\n\n======================================================================\nERROR: test_constructor (test_typing_extensions.NoExtraItemsTests.test_constructor)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 7976, in test_constructor\n self.assertIs(self.sentinel_type, type(self.sentinel_type)())\n ~~~~~~~~~~~~~~~~~~~~~~~~^^\nTypeError: sentinel expected 1 argument, got 0\n\n======================================================================\nERROR: test_sentinel_deprecated (test_typing_extensions.TestSentinels.test_sentinel_deprecated)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 9649, in test_sentinel_deprecated\n class SentinelSubclass(Sentinel):\n pass\nTypeError: type 'sentinel' is not an acceptable base type\n\n======================================================================\nERROR: test_sentinel_deprecated_explicit_repr (test_typing_extensions.TestSentinels.test_sentinel_deprecated_explicit_repr)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 9604, in test_sentinel_deprecated_explicit_repr\n sentinel_explicit_repr = sentinel('sentinel_explicit_repr', repr='explicit_repr')\nTypeError: sentinel() takes no keyword arguments\n\n======================================================================\nFAIL: test_repr (test_typing_extensions.NoExtraItemsTests.test_repr)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 8017, in test_repr\n self.assertEqual(repr(NoExtraItems), f\"{mod_name}.NoExtraItems\")\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 'NoExtraItems' != 'typing.NoExtraItems'\n- NoExtraItems\n+ typing.NoExtraItems\n? +++++++\n\n\n======================================================================\nFAIL: test_repr (test_typing_extensions.TypeVarTupleTests.test_repr)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 6802, in test_repr\n self.assertEqual(repr(Ts), 'Ts')\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^\nAssertionError: '~Ts' != 'Ts'\n- ~Ts\n? -\n+ Ts\n\n\n======================================================================\nFAIL: test_repr (test_typing_extensions.UnpackTests.test_repr)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/jonny/projects/typing_extensions/src/test_typing_extensions.py\", line 6604, in test_repr\n self.assertEqual(repr(Unpack[Ts]), f'{Unpack.__module__}.Unpack[Ts]')\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 'typing.Unpack[~Ts]' != 'typing.Unpack[Ts]'\n- typing.Unpack[~Ts]\n? -\n+ typing.Unpack[Ts]\n\n\n----------------------------------------------------------------------\nRan 571 tests in 0.519s\n\nFAILED (failures=3, errors=7, skipped=16)\n```","author":{"url":"https://github.com/hegjon","@type":"Person","name":"hegjon"},"datePublished":"2026-05-29T09:36:48Z","url":"https://github.com/python/typing_extensions/issues/759"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:468d3d3c-1ba1-2366-eff9-1ed8b56749a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDFE:7A60E:4602488:5990F77:6B023DFA |
| html-safe-nonce | 042fb2b659f44f3987edb1b5088b23257599544e565dd6677c3f71c78af4639f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREZFOjdBNjBFOjQ2MDI0ODg6NTk5MEY3Nzo2QjAyM0RGQSIsInZpc2l0b3JfaWQiOiIxODMxNTg3OTA3NTI2MzQ0MTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b9f7e5fead8af55f28aa0693e3f6630af8f506702f498a12f306ce337b1c7b7e |
| hovercard-subject-tag | issue:4547405982 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typing_extensions/759/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b29aed62313f22b107b3a649b7135fe37d047ed4ba2d8908451e7873de485ff/python/typing_extensions/issues/759 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b29aed62313f22b107b3a649b7135fe37d047ed4ba2d8908451e7873de485ff/python/typing_extensions/issues/759 |
| og:image:alt | Latest main: 7ce55df See also https://bugzilla.redhat.com/show_bug.cgi?id=2477406 for failure on release 4.15.0 jonny in typing_extensions/src on main [!⇡] via 🐍 v3.14.5 ❯ /home/jonny/Downloads/P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hegjon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing_extensions git https://github.com/python/typing_extensions.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 494077289 |
| octolytics-dimension-repository_nwo | python/typing_extensions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 494077289 |
| octolytics-dimension-repository_network_root_nwo | python/typing_extensions |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width