Title: Mypy 2.X periodically and inconsistently throws an error · Issue #21484 · python/mypy · GitHub
Open Graph Title: Mypy 2.X periodically and inconsistently throws an error · Issue #21484 · python/mypy
X Title: Mypy 2.X periodically and inconsistently throws an error · Issue #21484 · python/mypy
Description: Crash Report Mypy 2.X periodically and inconsistently throws an error Traceback Exception in thread Thread-7 (write_bytes): Exception in thread Thread-8 (write_bytes): Exception in thread Thread-9 (write_bytes): Exception in thread Threa...
Open Graph Description: Crash Report Mypy 2.X periodically and inconsistently throws an error Traceback Exception in thread Thread-7 (write_bytes): Exception in thread Thread-8 (write_bytes): Exception in thread Thread-9 ...
X Description: Crash Report Mypy 2.X periodically and inconsistently throws an error Traceback Exception in thread Thread-7 (write_bytes): Exception in thread Thread-8 (write_bytes): Exception in thread Thread-9 ...
Opengraph URL: https://github.com/python/mypy/issues/21484
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mypy 2.X periodically and inconsistently throws an error","articleBody":"**Crash Report**\n\nMypy 2.X periodically and inconsistently throws an error\n\n**Traceback**\n\n```python-traceback\nException in thread Thread-7 (write_bytes):\nException in thread Thread-8 (write_bytes):\nException in thread Thread-9 (write_bytes):\nException in thread Thread-10 (write_bytes):\nException in thread Thread-11 (write_bytes):\nException in thread Thread-12 (write_bytes):\nTraceback (most recent call last):\nTraceback (most recent call last):\n File \"mypy\\ipc.py\", line 158, in write_bytes\nTraceback (most recent call last):\nTraceback (most recent call last):\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\n File \"mypy\\ipc.py\", line 158, in write_bytes\nTraceback (most recent call last):\n File \"mypy\\ipc.py\", line 158, in write_bytes\nTraceback (most recent call last):\n File \"mypy\\ipc.py\", line 158, in write_bytes\n\nDuring handling of the above exception, another exception occurred:\n\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\n File \"mypy\\ipc.py\", line 158, in write_bytes\n ov, err = _winapi.WriteFile(self.connection, encoded_data, overlapped=True)\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\n File \"mypy\\ipc.py\", line 158, in write_bytes\n ov, err = _winapi.WriteFile(self.connection, encoded_data, overlapped=True)\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\nTraceback (most recent call last):\n\nDuring handling of the above exception, another exception occurred:\n\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\n\nDuring handling of the above exception, another exception occurred:\n\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\n\nDuring handling of the above exception, another exception occurred:\n\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1082, in _bootstrap_inner\n self._context.run(self.run)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\nTraceback (most recent call last):\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1024, in run\n self._target(*self._args, **self._kwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1082, in _bootstrap_inner\n self._context.run(self.run)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\nTraceback (most recent call last):\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1082, in _bootstrap_inner\n self._context.run(self.run)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\nTraceback (most recent call last):\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1082, in _bootstrap_inner\n self._context.run(self.run)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"mypy\\ipc.py\", line 174, in write_bytes\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1024, in run\n self._target(*self._args, **self._kwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1082, in _bootstrap_inner\n self._context.run(self.run)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1024, in run\n self._target(*self._args, **self._kwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1082, in _bootstrap_inner\n self._context.run(self.run)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1024, in run\n self._target(*self._args, **self._kwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nmypy.ipc.IPCException: Failed to write with error: 233\n File \"mypy\\ipc.py\", line 174, in write_bytes\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1024, in run\n self._target(*self._args, **self._kwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"mypy\\ipc.py\", line 174, in write_bytes\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python314\\Lib\\threading.py\", line 1024, in run\n self._target(*self._args, **self._kwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"mypy\\ipc.py\", line 174, in write_bytes\nmypy.ipc.IPCException: Failed to write with error: 233\n File \"mypy\\ipc.py\", line 174, in write_bytes\n raise IPCException(f\"Failed to write with error: {e.winerror}\") from e\nmypy.ipc.IPCException: Failed to write with error: 233\nmypy.ipc.IPCException: Failed to write with error: 233\nmypy.ipc.IPCException: Failed to write with error: 233\n File \"mypy\\ipc.py\", line 174, in write_bytes\n raise IPCException(f\"Failed to write with error: {e.winerror}\") from e\nmypy.ipc.IPCException: Failed to write with error: 233\nerror: INTERNAL ERROR -- Please try using mypy master on GitHub:\nhttps://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build\nPlease report a bug at https://github.com/python/mypy/issues\nversion: 2.1.0\nTraceback (most recent call last):\n File \"mypy\\build.py\", line 1392, in receive_worker_message\n return receive(self.workers[idx].conn)\n File \"mypy\\ipc.py\", line 479, in receive\n bdata = connection.read_bytes()\n File \"mypy\\ipc.py\", line 101, in read_bytes\n ov, err = _winapi.ReadFile(self.connection, size, overlapped=True)\nOSError: [WinError 233] С обоих концов канала отсутствуют процессы\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"\u003cfrozen runpy>\", line 203, in _run_module_as_main\n File \"\u003cfrozen runpy>\", line 88, in _run_code\n File \"D:\\Dev\\strana\\contracts-backend\\.venv\\Lib\\site-packages\\mypy\\__main__.py\", line 16, in console_entry\n main()\n ~~~~^^\n File \"mypy\\main.py\", line 154, in main\n File \"mypy\\main.py\", line 244, in run_build\n res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)\n File \"mypy\\build.py\", line 422, in build\n File \"mypy\\build.py\", line 537, in build_inner\n graph = dispatch(sources, manager, stdout, connect_threads)\n File \"mypy\\build.py\", line 4150, in dispatch\n process_graph(graph, manager)\n File \"mypy\\build.py\", line 4587, in process_graph\n manager.wait_ack()\n File \"mypy\\build.py\", line 1386, in wait_ack\n buf = self.receive_worker_message(idx)\n File \"mypy\\build.py\", line 1400, in receive_worker_message\n raise OSError(\nOSError: Worker 0 disconnected before sending data (exit code 0)\n\nnote: use --pdb to drop into pdb\n```\n\n**To Reproduce**\nIdk how reproduce it :( It's random\n\n**Your Environment**\n\n- Mypy version used: 2.1.0\n- Mypy command-line flags: mypy src tests main.py --num-workers=6 --show-traceback\n- Mypy configuration options from `mypy.ini` (and other config files): pyproject.toml\n```\n[tool.mypy]\nallow_redefinition = false\ndisallow_any_explicit = false\nexclude = \"(alembic)|(src/ignored)|src/t.py|(_entrypoints)|(tests/factories)|src/core/docx_templating/docx_templating.py\"\nfollow_imports = \"silent\"\nignore_errors = false\nignore_missing_imports = true\nlocal_partial_types = true\nmypy_path = \"src .\"\nno_implicit_optional = true\nplugins = [\n \"pydantic.mypy\",\n]\npython_version = 3.14\nstrict = true\nstrict_optional = true\nwarn_no_return = true\nwarn_return_any = true\nwarn_unreachable = false\n\npretty = true\nshow_column_numbers = true\nshow_error_codes = true\n\n[[tool.mypy.overrides]]\ndisable_error_code = [\"name-defined\", \"misc\", \"var-annotated\", \"attr-defined\", \"no-untyped-call\"]\nmodule = \"tests.factories.*\"\n\n[[tool.mypy.overrides]]\ndisable_error_code = [\"assignment\", \"misc\", \"var-annotated\", \"attr-defined\", \"arg-type\"]\nignore_errors = true\nmodule = [\n \"core.docx_templating.*\",\n]\n```\n- Python version used: 3.14.5\n- Operating system and version: Windows 10 Pro, build 19043\n","author":{"url":"https://github.com/barbarrista","@type":"Person","name":"barbarrista"},"datePublished":"2026-05-14T13:49:56Z","url":"https://github.com/python/mypy/issues/21484"}
| 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:07274413-42f1-3c9c-c758-09c0cb010066 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9624:2FD3CB:3A6305:4EA0FE:6B002A7E |
| html-safe-nonce | c581cda00b2e26d2212af83d3050e2a3e0188fc1d870de0cfde1d1e0b5ea6f2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjI0OjJGRDNDQjozQTYzMDU6NEVBMEZFOjZCMDAyQTdFIiwidmlzaXRvcl9pZCI6IjEwNjM5MTc3NzUzMDAzNDAzNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 17767d502f98eebd4482fd0e1363f97d385611edb1705fb96a6d611858ac36b2 |
| hovercard-subject-tag | issue:4446437710 |
| 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/21484/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0aa938c4c196ff97570072cefa076f468de7334025b32e9002cb0eb337db00cc/python/mypy/issues/21484 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0aa938c4c196ff97570072cefa076f468de7334025b32e9002cb0eb337db00cc/python/mypy/issues/21484 |
| og:image:alt | Crash Report Mypy 2.X periodically and inconsistently throws an error Traceback Exception in thread Thread-7 (write_bytes): Exception in thread Thread-8 (write_bytes): Exception in thread Thread-9 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barbarrista |
| 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