| 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:7118ee5d-7f4d-f166-b6e6-23733c748789 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BAD0:3F6E8D:DDDF4C:127BA89:6A5CF692 |
| html-safe-nonce | 70001c356e03f3f37843ef17f573b5d446d8e0bdbdf31f53f97c7c64fa241e0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUQwOjNGNkU4RDpERERGNEM6MTI3QkE4OTo2QTVDRjY5MiIsInZpc2l0b3JfaWQiOiIyODYxNDkzNTYwMTI1NzQ4ODgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 49db2d6bd422dc5b0aef075f80d5c549fc060bfe8bb81f9007d8a57c89bf9a44 |
| hovercard-subject-tag | pull_request:2207695532 |
| 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/18212/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f8520c7c9063327eb71c6d132de37a6edcb06b307f962656ddffdeea0c6b9f26/python/mypy/pull/18212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8520c7c9063327eb71c6d132de37a6edcb06b307f962656ddffdeea0c6b9f26/python/mypy/pull/18212 |
| og:image:alt | Fixes #16379
Only a modest change. PR #18180 brought me to issue #18238. Trying to fix the latter revealed inconsistencies between join-style and union-style narrowing, so I decided to deal with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tyralla |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/mypy/pull/18212#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18212 |
| 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%2F18212 |
|
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/18212 |
| Reload | https://github.com/python/mypy/pull/18212 |
| Reload | https://github.com/python/mypy/pull/18212 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
|
python
| https://github.com/python |
| mypy | https://github.com/python/mypy |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
|
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
471
| 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 |
| tyralla | https://github.com/tyralla |
| python:master | https://github.com/python/mypy/tree/master |
| tyralla:narrowing/move_join_based_narrowing_towards_union_based_narrowing | https://github.com/tyralla/mypy/tree/narrowing/move_join_based_narrowing_towards_union_based_narrowing |
| Conversation | https://github.com/python/mypy/pull/18212 |
| Commits9 (9) | https://github.com/python/mypy/pull/18212/commits |
| Checks | https://github.com/python/mypy/pull/18212/checks |
| Files changed | https://github.com/python/mypy/pull/18212/files |
| Move the join-based narrowing logic towards a union-based narrowing logic. | https://github.com/python/mypy/pull/18212#top |
| tyralla | https://github.com/tyralla |
| python:master | https://github.com/python/mypy/tree/master |
| tyralla:narrowing/move_join_based_narrowing_towards_union_based_narrowing | https://github.com/tyralla/mypy/tree/narrowing/move_join_based_narrowing_towards_union_based_narrowing |
|
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| Nov 29, 2024 | https://github.com/python/mypy/pull/18212#issue-2705609353 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| #16379 | https://github.com/python/mypy/issues/16379 |
| #18180 | https://github.com/python/mypy/pull/18180 |
| #18238 | https://github.com/python/mypy/issues/18238 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| tyralla | https://github.com/tyralla |
| November 29, 2024 17:41 | https://github.com/python/mypy/pull/18212#commits-pushed-5891413 |
|
| https://github.com/tyralla |
| Move the join-based narrowing logic towards a union-based narrowing l… | https://github.com/python/mypy/pull/18212/commits/5891413accb0b14c8209c3fe17ddaf492d945e3f |
| 5891413 | https://github.com/python/mypy/pull/18212/commits/5891413accb0b14c8209c3fe17ddaf492d945e3f |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/python/mypy/pull/18212/commits/0e9f99fdd0236f0001a8a4b45c9c0aceb4cd7954 |
| 0e9f99f | https://github.com/python/mypy/pull/18212/commits/0e9f99fdd0236f0001a8a4b45c9c0aceb4cd7954 |
| https://pre-commit.ci | https://pre-commit.ci |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| Nov 29, 2024 | https://github.com/python/mypy/pull/18212#issuecomment-2508140294 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18212 |
| tyralla | https://github.com/tyralla |
| December 1, 2024 11:24 | https://github.com/python/mypy/pull/18212#commits-pushed-d70a727 |
|
| https://github.com/tyralla |
| much softer approach | https://github.com/python/mypy/pull/18212/commits/d70a727203d7e509f5e194a362cbaf867d7df21f |
| d70a727 | https://github.com/python/mypy/pull/18212/commits/d70a727203d7e509f5e194a362cbaf867d7df21f |
|
| https://github.com/tyralla |
| Merge remote-tracking branch 'mypypy/narrowing/move_join_based_narrow… | https://github.com/python/mypy/pull/18212/commits/c418ad38934aef0247ba78ca2a065f05a6feef34 |
| c418ad3 | https://github.com/python/mypy/pull/18212/commits/c418ad38934aef0247ba78ca2a065f05a6feef34 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18212 |
|
| https://github.com/tyralla |
| fix | https://github.com/python/mypy/pull/18212/commits/bf8e8b1056e2b2b3f2cbf1309ad88ffd9624a35a |
| bf8e8b1 | https://github.com/python/mypy/pull/18212/commits/bf8e8b1056e2b2b3f2cbf1309ad88ffd9624a35a |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| December 1, 2024 11:54 | https://github.com/python/mypy/pull/18212#event-15484149036 |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
|
topic-type-narrowing
| https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Atopic-type-narrowing |
|
topic-join-v-union
| https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Atopic-join-v-union |
| Dec 1, 2024 | https://github.com/python/mypy/pull/18212#event-15484150048 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18212 |
| tyralla | https://github.com/tyralla |
| December 2, 2024 06:17 | https://github.com/python/mypy/pull/18212#commits-pushed-31a0401 |
|
| https://github.com/tyralla |
| module import | https://github.com/python/mypy/pull/18212/commits/31a04014fac592ad0056a74d9d04c74c9642ab9c |
| 31a0401 | https://github.com/python/mypy/pull/18212/commits/31a04014fac592ad0056a74d9d04c74c9642ab9c |
|
| https://github.com/tyralla |
| add error message to assert | https://github.com/python/mypy/pull/18212/commits/121d8e1e64676f1606e3f0f94273221d205dd61d |
| 121d8e1 | https://github.com/python/mypy/pull/18212/commits/121d8e1e64676f1606e3f0f94273221d205dd61d |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18212 |
| tyralla | https://github.com/tyralla |
| December 2, 2024 22:30 | https://github.com/python/mypy/pull/18212#commits-pushed-2c1b1a1 |
|
| https://github.com/tyralla |
| TupleType fallbacks as Instances, not Unions | https://github.com/python/mypy/pull/18212/commits/2c1b1a10b0107b4ab2f566b0cfd0e91e148932d2 |
| 2c1b1a1 | https://github.com/python/mypy/pull/18212/commits/2c1b1a10b0107b4ab2f566b0cfd0e91e148932d2 |
|
| https://github.com/tyralla |
| Add test case that would crash without the previous commit | https://github.com/python/mypy/pull/18212/commits/43ed94e692eb56bec169f0cec75e13b5fce466c8 |
| 43ed94e | https://github.com/python/mypy/pull/18212/commits/43ed94e692eb56bec169f0cec75e13b5fce466c8 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Dec 2, 2024 | https://github.com/python/mypy/pull/18212#issuecomment-2513036530 |
| mypy_primer | https://github.com/hauntsaninja/mypy_primer |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| JukkaL | https://github.com/JukkaL |
| ilevkivskyi | https://github.com/ilevkivskyi |
| December 3, 2024 21:38 | https://github.com/python/mypy/pull/18212#event-15516375200 |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| December 3, 2024 21:39 | https://github.com/python/mypy/pull/18212#event-15516387788 |
| https://github.com/ilevkivskyi |
| ilevkivskyi | https://github.com/ilevkivskyi |
|
Dec 3, 2024
| https://github.com/python/mypy/pull/18212#pullrequestreview-2476985756 |
|
View reviewed changes
| https://github.com/python/mypy/pull/18212/files/43ed94e692eb56bec169f0cec75e13b5fce466c8 |
| ilevkivskyi | https://github.com/ilevkivskyi |
| https://github.com/python/mypy/pull/18212#pullrequestreview-2476985756 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| https://github.com/ilevkivskyi |
| ilevkivskyi | https://github.com/ilevkivskyi |
| Dec 4, 2024 | https://github.com/python/mypy/pull/18212#issuecomment-2515834688 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| Dec 4, 2024 | https://github.com/python/mypy/pull/18212#issuecomment-2518227692 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
| https://github.com/tyralla |
| tyralla | https://github.com/tyralla |
| Dec 4, 2024 | https://github.com/python/mypy/pull/18212#event-15530843700 |
| 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%2F18212 |
|
| https://github.com/ilevkivskyi |
|
ilevkivskyi
| https://github.com/ilevkivskyi |
|
| https://github.com/python/mypy/pull/18212/files/43ed94e692eb56bec169f0cec75e13b5fce466c8 |
|
| https://github.com/JukkaL |
|
JukkaL
| https://github.com/JukkaL |
|
topic-join-v-union
| https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Atopic-join-v-union |
|
topic-type-narrowing
| https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Atopic-type-narrowing |
|
Incorrect type narrowing for select class hierarchies
| https://github.com/python/mypy/issues/16379 |
| Please reload this page | https://github.com/python/mypy/pull/18212 |
|
| https://github.com/tyralla |
|
| https://github.com/ilevkivskyi |
|
| 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 |