René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:07274413-42f1-3c9c-c758-09c0cb010066
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9624:2FD3CB:3A6305:4EA0FE:6B002A7E
html-safe-noncec581cda00b2e26d2212af83d3050e2a3e0188fc1d870de0cfde1d1e0b5ea6f2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjI0OjJGRDNDQjozQTYzMDU6NEVBMEZFOjZCMDAyQTdFIiwidmlzaXRvcl9pZCI6IjEwNjM5MTc3NzUzMDAzNDAzNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac17767d502f98eebd4482fd0e1363f97d385611edb1705fb96a6d611858ac36b2
hovercard-subject-tagissue:4446437710
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/21484/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0aa938c4c196ff97570072cefa076f468de7334025b32e9002cb0eb337db00cc/python/mypy/issues/21484
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0aa938c4c196ff97570072cefa076f468de7334025b32e9002cb0eb337db00cc/python/mypy/issues/21484
og:image:altCrash 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarbarrista
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/21484#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F21484
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F21484
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/issues/21484
Reloadhttps://github.com/python/mypy/issues/21484
Reloadhttps://github.com/python/mypy/issues/21484
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests547 (547)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/21484
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/21484
#22016https://github.com/python/mypy/pull/22016
Mypy 2.X periodically and inconsistently throws an errorhttps://github.com/python/mypy/issues/21484#top
#22016https://github.com/python/mypy/pull/22016
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
https://github.com/barbarrista
barbarristahttps://github.com/barbarrista
on May 14, 2026https://github.com/python/mypy/issues/21484#issue-4446437710
barbarristahttps://github.com/barbarrista
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on May 14, 2026https://github.com/python/mypy/issues/21484#event-25531676549
https://github.com/adamtheturtle
adamtheturtlehttps://github.com/adamtheturtle
on May 30, 2026https://github.com/python/mypy/issues/21484#issuecomment-4582340157
https://github.com/VWS-Python/vws-auth-tools/actions/runs/26678799444/job/78635415445?pr=1705https://github.com/VWS-Python/vws-auth-tools/actions/runs/26678799444/job/78635415445?pr=1705
https://github.com/thomasaarholt
thomasaarholthttps://github.com/thomasaarholt
on Jun 25, 2026https://github.com/python/mypy/issues/21484#issuecomment-4797331340
https://github.com/thomasaarholt
thomasaarholthttps://github.com/thomasaarholt
on Jun 26, 2026https://github.com/python/mypy/issues/21484#issuecomment-4810560125
https://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yamlhttps://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yaml
chadrikhttps://github.com/chadrik
on Aug 17, 2026https://github.com/python/mypy/issues/21484#event-29542719006
Don't apply a server's connection timeout to the read/write traffic t…https://github.com/chadrik/mypy/commit/d3a398627c5cdd4314ea8bbff3eefb7339ade0d0
https://docs.github.com/articles/closing-issues-via-commit-messages
d3a3986https://github.com/chadrik/mypy/commit/d3a398627c5cdd4314ea8bbff3eefb7339ade0d0
chadrikhttps://github.com/chadrik
on Sep 21, 2026https://github.com/python/mypy/issues/21484#event-31502047807
Don't apply a server's connection timeout to the read/write traffic t…https://github.com/chadrik/mypy/commit/d992c9290d5f498d5a9119b99f22e9ad5ecdde22
https://docs.github.com/articles/closing-issues-via-commit-messages
d992c92https://github.com/chadrik/mypy/commit/d992c9290d5f498d5a9119b99f22e9ad5ecdde22
ilevkivskyihttps://github.com/ilevkivskyi
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#22016https://github.com/python/mypy/pull/22016
on Sep 23, 2026https://github.com/python/mypy/issues/21484#event-31689038027
pullhttps://github.com/apps/pull
on Sep 23, 2026https://github.com/python/mypy/issues/21484#event-31694651207
Fix errors with multi-process workers on Windows (python#22016)https://github.com/Spencerx/mypy/commit/8ddae7832537697a35ee58429a7de75d8f9444fd
python#22016https://github.com/python/mypy/pull/22016
https://docs.github.com/articles/closing-issues-via-commit-messages
8ddae78https://github.com/Spencerx/mypy/commit/8ddae7832537697a35ee58429a7de75d8f9444fd
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/21484
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/21484
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.