| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:6738ae78-a0b9-aebd-69f2-075922dfa012 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C086:18E42A:D7EC94:121AECE:6A5945E4 |
| html-safe-nonce | c78a6d686a5a7cccaaaf93080dbb71d3c76890443f1d4e54177084ad5f8bd736 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDg2OjE4RTQyQTpEN0VDOTQ6MTIxQUVDRTo2QTU5NDVFNCIsInZpc2l0b3JfaWQiOiIzMjg2OTY3OTI0MDAzNzg0MTY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b80c971ddadd697a0729b60d148226116217444cc66c540384af9333fc0929c2 |
| hovercard-subject-tag | pull_request:2344120359 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/mypy/18707/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/215c0bea693d8134c78bd5e047b1262c4d65adfb52d09d0d308560615b529f0b/python/mypy/pull/18707 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/215c0bea693d8134c78bd5e047b1262c4d65adfb52d09d0d308560615b529f0b/python/mypy/pull/18707 |
| og:image:alt | Fixes [regression] no type checking beyond perceived isinstance guard failure #18329
Maybe type narrowing leads to "unreachable" code being actually reachable #12598
Maybe <nothing>... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | A5rocks |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f801e05b35c85b2d72eae6534d2b1d4c02ba8732fd046450bab31e2f52450ce |
| turbo-cache-control | no-cache |
| 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 | 49918fc503387d6d65b6bc6ce6f711c14d17bfbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/mypy/pull/18707#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fmypy |
| Reload | https://github.com/python/mypy/pull/18707 |
| Reload | https://github.com/python/mypy/pull/18707 |
| Reload | https://github.com/python/mypy/pull/18707 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
|
python
| https://github.com/python |
| mypy | https://github.com/python/mypy |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fmypy |
|
Fork
3.2k
| https://github.com/login?return_to=%2Fpython%2Fmypy |
|
Star
20.5k
| https://github.com/login?return_to=%2Fpython%2Fmypy |
|
Code
| https://github.com/python/mypy |
|
Issues
2.7k
| https://github.com/python/mypy/issues |
|
Pull requests
466
| https://github.com/python/mypy/pulls |
|
Actions
| https://github.com/python/mypy/actions |
|
Projects
| https://github.com/python/mypy/projects |
|
Wiki
| https://github.com/python/mypy/wiki |
|
Security and quality
0
| https://github.com/python/mypy/security |
|
Insights
| https://github.com/python/mypy/pulse |
|
Code
| https://github.com/python/mypy |
|
Issues
| https://github.com/python/mypy/issues |
|
Pull requests
| https://github.com/python/mypy/pulls |
|
Actions
| https://github.com/python/mypy/actions |
|
Projects
| https://github.com/python/mypy/projects |
|
Wiki
| https://github.com/python/mypy/wiki |
|
Security and quality
| https://github.com/python/mypy/security |
|
Insights
| https://github.com/python/mypy/pulse |
| A5rocks | https://github.com/A5rocks |
| python:master | https://github.com/python/mypy/tree/master |
| A5rocks:experiments/typecheck-unreachable | https://github.com/A5rocks/mypy/tree/experiments/typecheck-unreachable |
| Conversation | https://github.com/python/mypy/pull/18707 |
| Commits46 (46) | https://github.com/python/mypy/pull/18707/commits |
| Checks | https://github.com/python/mypy/pull/18707/checks |
| Files changed | https://github.com/python/mypy/pull/18707/files |
| Typecheck unreachable code | https://github.com/python/mypy/pull/18707#top |
| A5rocks | https://github.com/A5rocks |
| python:master | https://github.com/python/mypy/tree/master |
| A5rocks:experiments/typecheck-unreachable | https://github.com/A5rocks/mypy/tree/experiments/typecheck-unreachable |
|
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
| Feb 19, 2025 | https://github.com/python/mypy/pull/18707#issue-2862782964 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| [regression] no type checking beyond perceived isinstance guard failure #18329 | https://github.com/python/mypy/issues/18329 |
| type narrowing leads to "unreachable" code being actually reachable #12598 | https://github.com/python/mypy/issues/12598 |
| object is not iterable #4330 | https://github.com/python/mypy/issues/4330 |
| "Cannot determine type" if first assignment to attribute is unreachable #9709 | https://github.com/python/mypy/issues/9709 |
| assert_type fails to fail for NoReturn #16319 | https://github.com/python/mypy/issues/16319 |
| Union of Never can't be used #18779 | https://github.com/python/mypy/issues/18779 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| A5rocks | https://github.com/A5rocks |
| February 19, 2025 15:21 | https://github.com/python/mypy/pull/18707#commits-pushed-be1071e |
|
| https://github.com/A5rocks |
| Start type checking unreachable code | https://github.com/python/mypy/pull/18707/commits/be1071e454e5f012f8998e91a868e31c83efdad3 |
| be1071e | https://github.com/python/mypy/pull/18707/commits/be1071e454e5f012f8998e91a868e31c83efdad3 |
|
| https://github.com/A5rocks |
| Pass self-check | https://github.com/python/mypy/pull/18707/commits/d9969181b7c388b72aade987b82bf60242c620d7 |
| d996918 | https://github.com/python/mypy/pull/18707/commits/d9969181b7c388b72aade987b82bf60242c620d7 |
|
| https://github.com/A5rocks |
| Hacky fix to narrow unreachable literals | https://github.com/python/mypy/pull/18707/commits/07de5bfca7f26fe82a00f8d362de80556f7481a3 |
| 07de5bf | https://github.com/python/mypy/pull/18707/commits/07de5bfca7f26fe82a00f8d362de80556f7481a3 |
|
| https://github.com/A5rocks |
| 20% of tests | https://github.com/python/mypy/pull/18707/commits/bac268b531833508e008eff08fb0d90195c1835a |
| bac268b | https://github.com/python/mypy/pull/18707/commits/bac268b531833508e008eff08fb0d90195c1835a |
|
| https://github.com/A5rocks |
| 25% of tests | https://github.com/python/mypy/pull/18707/commits/2da4b7c2eb46dc824ab6eed8fc221f3e021c5dc4 |
| 2da4b7c | https://github.com/python/mypy/pull/18707/commits/2da4b7c2eb46dc824ab6eed8fc221f3e021c5dc4 |
|
| https://github.com/A5rocks |
| 30% of tests | https://github.com/python/mypy/pull/18707/commits/ba9dab2018678d8c1296da3f61badf733e5a5bee |
| ba9dab2 | https://github.com/python/mypy/pull/18707/commits/ba9dab2018678d8c1296da3f61badf733e5a5bee |
|
| https://github.com/A5rocks |
| 40% of tests | https://github.com/python/mypy/pull/18707/commits/7c39efa49687394fc8552dd018b896dc24d2ff77 |
| 7c39efa | https://github.com/python/mypy/pull/18707/commits/7c39efa49687394fc8552dd018b896dc24d2ff77 |
|
| https://github.com/A5rocks |
| 50% of tests | https://github.com/python/mypy/pull/18707/commits/18642d0c32e9cbc356ee568ee48683a1b62e1262 |
| 18642d0 | https://github.com/python/mypy/pull/18707/commits/18642d0c32e9cbc356ee568ee48683a1b62e1262 |
|
| https://github.com/A5rocks |
| 60% of tests | https://github.com/python/mypy/pull/18707/commits/879b27452e9175bf53d0542c4a2e882a447e8178 |
| 879b274 | https://github.com/python/mypy/pull/18707/commits/879b27452e9175bf53d0542c4a2e882a447e8178 |
|
| https://github.com/A5rocks |
| Pass all tests | https://github.com/python/mypy/pull/18707/commits/c62093e07c8fb180cb8e7c2200d1c4269b641eb0 |
| c62093e | https://github.com/python/mypy/pull/18707/commits/c62093e07c8fb180cb8e7c2200d1c4269b641eb0 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
| https://github.com/A5rocks |
| Narrow isinstance checks to Never | https://github.com/python/mypy/pull/18707/commits/e242b5e59367664b4ec656d863f2861c401af7fe |
| e242b5e | https://github.com/python/mypy/pull/18707/commits/e242b5e59367664b4ec656d863f2861c401af7fe |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| A5rocks | https://github.com/A5rocks |
| February 20, 2025 20:11 | https://github.com/python/mypy/pull/18707#commits-pushed-69efb41 |
|
| https://github.com/A5rocks |
| Don't treat reveal_type() as a no-op | https://github.com/python/mypy/pull/18707/commits/69efb41ad4b44e7d0c802a801355a1b5876ca641 |
| 69efb41 | https://github.com/python/mypy/pull/18707/commits/69efb41ad4b44e7d0c802a801355a1b5876ca641 |
|
| https://github.com/A5rocks |
| Ensure functions with typevar values don't get false positives | https://github.com/python/mypy/pull/18707/commits/f846af7b57694196ef15df3f24894b93dea3ec00 |
| f846af7 | https://github.com/python/mypy/pull/18707/commits/f846af7b57694196ef15df3f24894b93dea3ec00 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| A5rocks | https://github.com/A5rocks |
| February 21, 2025 12:08 | https://github.com/python/mypy/pull/18707#commits-pushed-390ade8 |
|
| https://github.com/A5rocks |
| Ensure that .x is Never | https://github.com/python/mypy/pull/18707/commits/390ade859652d2db685268a9f70d1ea9955b53eb |
| 390ade8 | https://github.com/python/mypy/pull/18707/commits/390ade859652d2db685268a9f70d1ea9955b53eb |
|
| https://github.com/A5rocks |
| Ensure that () is Never | https://github.com/python/mypy/pull/18707/commits/f3ba1494689364d50b8c11c45110bb8102a5149f |
| f3ba149 | https://github.com/python/mypy/pull/18707/commits/f3ba1494689364d50b8c11c45110bb8102a5149f |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
|
Feb 24, 2025
| https://github.com/python/mypy/pull/18707#ref-pullrequest-2811729737 |
|
Fix --warn-unreachable fall-through from ALWAYS_TRUE ifs
#18539
| https://github.com/python/mypy/pull/18539 |
| A5rocks | https://github.com/A5rocks |
| February 24, 2025 12:37 | https://github.com/python/mypy/pull/18707#commits-pushed-92a4428 |
|
| https://github.com/A5rocks |
| Only report unreachability once | https://github.com/python/mypy/pull/18707/commits/92a4428bf4f221810eefb7d197bbf4776aaf3908 |
| 92a4428 | https://github.com/python/mypy/pull/18707/commits/92a4428bf4f221810eefb7d197bbf4776aaf3908 |
|
| https://github.com/A5rocks |
| Narrow callable checks to Never | https://github.com/python/mypy/pull/18707/commits/c76d422e9a4ac2f29fd2c23ade0f0613f31178c4 |
| c76d422 | https://github.com/python/mypy/pull/18707/commits/c76d422e9a4ac2f29fd2c23ade0f0613f31178c4 |
|
| https://github.com/A5rocks |
| Address CI failures | https://github.com/python/mypy/pull/18707/commits/be1d524769052bf7f6f872d7a523fcf7754b3bf7 |
| be1d524 | https://github.com/python/mypy/pull/18707/commits/be1d524769052bf7f6f872d7a523fcf7754b3bf7 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| A5rocks | https://github.com/A5rocks |
| February 24, 2025 15:03 | https://github.com/python/mypy/pull/18707#commits-pushed-13ad1cb |
|
| https://github.com/A5rocks |
| Narrow match captures to Never | https://github.com/python/mypy/pull/18707/commits/13ad1cb54c01ee320201883ae4fbb653c8ff36d7 |
| 13ad1cb | https://github.com/python/mypy/pull/18707/commits/13ad1cb54c01ee320201883ae4fbb653c8ff36d7 |
|
| https://github.com/A5rocks |
| Don't check unreachable code with partial types | https://github.com/python/mypy/pull/18707/commits/53553e7af2520a26a4ffc0cf91aab032e9b12196 |
| 53553e7 | https://github.com/python/mypy/pull/18707/commits/53553e7af2520a26a4ffc0cf91aab032e9b12196 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| A5rocks | https://github.com/A5rocks |
| February 24, 2025 16:19 | https://github.com/python/mypy/pull/18707#commits-pushed-6cc9930 |
|
| https://github.com/A5rocks |
| Avoid strange behavior regarding "narrowing" expressions for unreacha… | https://github.com/python/mypy/pull/18707/commits/6cc9930542b2d25a0258fd81d65976b13d5b680b |
| 6cc9930 | https://github.com/python/mypy/pull/18707/commits/6cc9930542b2d25a0258fd81d65976b13d5b680b |
|
| https://github.com/A5rocks |
| Unpack Never iterables | https://github.com/python/mypy/pull/18707/commits/4ddd34ea9061b1036b51596aa0a51d2abac88427 |
| 4ddd34e | https://github.com/python/mypy/pull/18707/commits/4ddd34ea9061b1036b51596aa0a51d2abac88427 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
| https://github.com/A5rocks |
| Ensure --strict-equality works correctly with partial types | https://github.com/python/mypy/pull/18707/commits/390388a8d35446f927c7334c57b442530c8aeac6 |
| 390388a | https://github.com/python/mypy/pull/18707/commits/390388a8d35446f927c7334c57b442530c8aeac6 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
|
Mar 11, 2025
| https://github.com/python/mypy/pull/18707#ref-issue-2907792166 |
|
Union of Never can't be used
#18779
| https://github.com/python/mypy/issues/18779 |
|
| https://github.com/A5rocks |
| Support Never callables in plugins | https://github.com/python/mypy/pull/18707/commits/dc8ed710790802ded7fe9ca5f079747fd77da220 |
| dc8ed71 | https://github.com/python/mypy/pull/18707/commits/dc8ed710790802ded7fe9ca5f079747fd77da220 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
| Mar 13, 2025 | https://github.com/python/mypy/pull/18707#issuecomment-2720688815 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
|
| https://github.com/A5rocks |
| Add a test about narrowing behavior | https://github.com/python/mypy/pull/18707/commits/102ac11a7a12af415d0fbb14ce5628dcc6841427 |
| 102ac11 | https://github.com/python/mypy/pull/18707/commits/102ac11a7a12af415d0fbb14ce5628dcc6841427 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
| March 13, 2025 10:42 | https://github.com/python/mypy/pull/18707#event-16732847942 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
|
Mar 17, 2025
| https://github.com/python/mypy/pull/18707#pullrequestreview-2690600505 |
|
View reviewed changes
| https://github.com/python/mypy/pull/18707/files/102ac11a7a12af415d0fbb14ce5628dcc6841427 |
| JukkaL | https://github.com/JukkaL |
| https://github.com/python/mypy/pull/18707#pullrequestreview-2690600505 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| mypyc/ir/pprint.py | https://github.com/python/mypy/pull/18707/files/102ac11a7a12af415d0fbb14ce5628dcc6841427#diff-15226745bbcf2cc3fc0f6d74409538ca70a7860041c4288bf1da0b510fd7a0c9 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| mypy/checkexpr.py | https://github.com/python/mypy/pull/18707/files/102ac11a7a12af415d0fbb14ce5628dcc6841427#diff-42eda644ce5003e33ea0766d7601fcfb4934ad106429abfe115954a1fccddd07 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| Mar 17, 2025 | https://github.com/python/mypy/pull/18707#issuecomment-2729621677 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
|
| https://github.com/A5rocks |
| Merge remote-tracking branch 'upstream/master' into experiments/typec… | https://github.com/python/mypy/pull/18707/commits/f7f8915fcbfa1401a3d3cd2fb2cad45bbfa92520 |
| f7f8915 | https://github.com/python/mypy/pull/18707/commits/f7f8915fcbfa1401a3d3cd2fb2cad45bbfa92520 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
| https://github.com/A5rocks |
| Merge branch 'master' into experiments/typecheck-unreachable | https://github.com/python/mypy/pull/18707/commits/bc8cb9032c04d9856036470bc6f690e201a75740 |
| bc8cb90 | https://github.com/python/mypy/pull/18707/commits/bc8cb9032c04d9856036470bc6f690e201a75740 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
| JukkaL | https://github.com/JukkaL |
| March 31, 2025 14:42 | https://github.com/python/mypy/pull/18707#event-17058666824 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
| https://github.com/A5rocks |
| Address PR review | https://github.com/python/mypy/pull/18707/commits/ac03c88d51b8e41dd9dd57748d01a9874584b988 |
| ac03c88 | https://github.com/python/mypy/pull/18707/commits/ac03c88d51b8e41dd9dd57748d01a9874584b988 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
| https://github.com/A5rocks |
| Add an option to enable checking unreachable code | https://github.com/python/mypy/pull/18707/commits/4f319bb2e0ef90762d7cf0f966f690780aa33740 |
| 4f319bb | https://github.com/python/mypy/pull/18707/commits/4f319bb2e0ef90762d7cf0f966f690780aa33740 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
| A5rocks | https://github.com/A5rocks |
| April 10, 2025 00:59 | https://github.com/python/mypy/pull/18707#commits-pushed-d5e4a47 |
|
| https://github.com/A5rocks |
| Update test cases to pass | https://github.com/python/mypy/pull/18707/commits/d5e4a475205c79928bb437c33af590114b51ec9d |
| d5e4a47 | https://github.com/python/mypy/pull/18707/commits/d5e4a475205c79928bb437c33af590114b51ec9d |
|
| https://github.com/A5rocks |
| Don't typecheck unreachable noops | https://github.com/python/mypy/pull/18707/commits/730d9ee61c6f8d07b825de6fdd5b8942a48d0a3a |
| 730d9ee | https://github.com/python/mypy/pull/18707/commits/730d9ee61c6f8d07b825de6fdd5b8942a48d0a3a |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Apr 9, 2025 | https://github.com/python/mypy/pull/18707#issuecomment-2790351229 |
| mypy_primer | https://github.com/hauntsaninja/mypy_primer |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
|
Apr 25, 2025
| https://github.com/python/mypy/pull/18707#ref-issue-3020098602 |
|
Change of binder behavior whan narrowing to unrelated type
#18967
| https://github.com/python/mypy/issues/18967 |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
|
Aug 10, 2025
| https://github.com/python/mypy/pull/18707#ref-pullrequest-3307443515 |
|
Fix --strict-equality for iteratively visited code
#19635
| https://github.com/python/mypy/pull/19635 |
| https://github.com/hauntsaninja |
| hauntsaninja | https://github.com/hauntsaninja |
|
Dec 31, 2025
| https://github.com/python/mypy/pull/18707#ref-pullrequest-3769650923 |
|
Rework narrowing logic for equality and identity
#20492
| https://github.com/python/mypy/pull/20492 |
|
Improve reachability in narrowing logic
#20660
| https://github.com/python/mypy/pull/20660 |
|
Preserve narrowing in unreachable code
#20710
| https://github.com/python/mypy/pull/20710 |
| hauntsaninja | https://github.com/hauntsaninja |
|
Feb 3, 2026
| https://github.com/python/mypy/pull/18707#ref-commit-606973f |
|
| https://github.com/hauntsaninja |
| Preserve narrowing in unreachable code ( | https://github.com/python/mypy/commit/606973fe7078a63ff52e1129fe3f43ecea392296 |
| #20710 | https://github.com/python/mypy/pull/20710 |
| ) | https://github.com/python/mypy/commit/606973fe7078a63ff52e1129fe3f43ecea392296 |
| 606973f | https://github.com/python/mypy/commit/606973fe7078a63ff52e1129fe3f43ecea392296 |
| #18707 | https://github.com/python/mypy/pull/18707 |
| #18707 | https://github.com/python/mypy/pull/18707 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
| Feb 10, 2026 | https://github.com/python/mypy/pull/18707#issuecomment-3875049116 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| https://github.com/A5rocks |
| A5rocks | https://github.com/A5rocks |
| Feb 10, 2026 | https://github.com/python/mypy/pull/18707#event-22660992055 |
| https://github.com/hauntsaninja |
| hauntsaninja | https://github.com/hauntsaninja |
| Feb 10, 2026 | https://github.com/python/mypy/pull/18707#issuecomment-3875117237 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
| https://github.co/hiddenchars |
| https://github.com/python/mypy/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18707 |
|
| https://github.com/JukkaL |
|
JukkaL
| https://github.com/JukkaL |
|
| https://github.com/A5rocks |
|
A5rocks
| https://github.com/A5rocks |
|
Union of Never can't be used
| https://github.com/python/mypy/issues/18779 |
|
[regression] no type checking beyond perceived isinstance guard failure
| https://github.com/python/mypy/issues/18329 |
|
assert_type fails to fail for NoReturn
| https://github.com/python/mypy/issues/16319 |
|
"Cannot determine type" if first assignment to attribute is unreachable
| https://github.com/python/mypy/issues/9709 |
| Please reload this page | https://github.com/python/mypy/pull/18707 |
|
| https://github.com/A5rocks |
|
| https://github.com/JukkaL |
|
| https://github.com/hauntsaninja |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |