Title: INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) with asyncio.gather tuple-unpack into previously-bound variable · Issue #21802 · python/mypy · GitHub
Open Graph Title: INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) with asyncio.gather tuple-unpack into previously-bound variable · Issue #21802 · python/mypy
X Title: INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) with asyncio.gather tuple-unpack into previously-bound variable · Issue #21802 · python/mypy
Description: Crash Report INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) when tuple-unpacking the result of await asyncio.gather(...) into a variable that was previously bound to an incompatible type. Traceback Traceback (most r...
Open Graph Description: Crash Report INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) when tuple-unpacking the result of await asyncio.gather(...) into a variable that was previously bound to an incomp...
X Description: Crash Report INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) when tuple-unpacking the result of await asyncio.gather(...) into a variable that was previously bound to an incomp...
Opengraph URL: https://github.com/python/mypy/issues/21802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) with asyncio.gather tuple-unpack into previously-bound variable","articleBody":"## Crash Report\n\n`INTERNAL ERROR` (`AssertionError` in `check_multi_assignment_from_tuple`) when tuple-unpacking the result of `await asyncio.gather(...)` into a variable that was previously bound to an incompatible type.\n\n## Traceback\n\n```\nTraceback (most recent call last):\n File \"mypy/checker.py\", line 765, in accept\n File \"mypy/nodes.py\", line 1909, in accept\n File \"mypy/checker.py\", line 3367, in visit_assignment_stmt\n File \"mypy/checker.py\", line 3419, in check_assignment\n File \"mypy/checker.py\", line 4182, in check_assignment_to_multiple_lvalues\n File \"mypy/checker.py\", line 4260, in check_multi_assignment\n File \"mypy/checker.py\", line 4411, in check_multi_assignment_from_tuple\nAssertionError\n```\n\n## To Reproduce\n\n```python\nimport asyncio\nfrom collections.abc import Iterable\n\n\nasync def bar() -> Iterable[int]:\n return ()\n\n\nasync def foo(a: list[int]) -> None:\n b = a\n _, b = await asyncio.gather(bar(), bar())\n```\n\n## Your Environment\n\n- Mypy version used: 2.3.0 (compiled: yes)\n- Python version used: 3.14.0\n","author":{"url":"https://github.com/abrahammurciano","@type":"Person","name":"abrahammurciano"},"datePublished":"2026-08-02T16:36:24Z","url":"https://github.com/python/mypy/issues/21802"}
| 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:50b2c74b-a4b6-9986-bc36-5287ddf8eae0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF78:1F5A:1F6236:307020:6B0032CA |
| html-safe-nonce | d066e8cd4c0808a526f516940318b2307cec8dd62b2c8268c5b4436deecc932d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjc4OjFGNUE6MUY2MjM2OjMwNzAyMDo2QjAwMzJDQSIsInZpc2l0b3JfaWQiOiI1NzY1MzQ5NTAxOTA0NjMwNDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5b1217c16d151db269736c81acbb2cc7e5c71582d488ba01ccd4c19c303b87d3 |
| hovercard-subject-tag | issue:5043447469 |
| 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/mypy/21802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f28f069808af3913668dba8044f67e7f6d94331e225ffa5f068ffb66926f2c28/python/mypy/issues/21802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f28f069808af3913668dba8044f67e7f6d94331e225ffa5f068ffb66926f2c28/python/mypy/issues/21802 |
| og:image:alt | Crash Report INTERNAL ERROR (AssertionError in check_multi_assignment_from_tuple) when tuple-unpacking the result of await asyncio.gather(...) into a variable that was previously bound to an incomp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abrahammurciano |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width