| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:849691ac-52c9-97e0-5de3-2f0145bffa0e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7B0:1712DC:AB8E10B:E68BECA:6A5EAAC1 |
| html-safe-nonce | 6c42380d777135c715eb5a78b09c8f742894032d5ce85e5e89c08e7a96041f60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0IwOjE3MTJEQzpBQjhFMTBCOkU2OEJFQ0E6NkE1RUFBQzEiLCJ2aXNpdG9yX2lkIjoiNzUzMDg0NDQ0NTEyNDUwNDI1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 587b495fe2629cae46f33d834393178086316a21dcdf75a0b7ec48b7ba26b7ce |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/mypy/pull/18212/files |
| twitter:image | https://avatars.githubusercontent.com/u/25983587?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25983587?s=400&v=4 |
| 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:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d2ac9bdd71d5f53f2b731c9330677e38624e301 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/mypy/pull/18212/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18212%2Ffiles |
| 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 |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| 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%2Ffiles |
|
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fmypy |
| Reload | https://github.com/python/mypy/pull/18212/files |
| Reload | https://github.com/python/mypy/pull/18212/files |
| Reload | https://github.com/python/mypy/pull/18212/files |
| Please reload this page | https://github.com/python/mypy/pull/18212/files |
|
python
| https://github.com/python |
| mypy | https://github.com/python/mypy |
| Please reload this page | https://github.com/python/mypy/pull/18212/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fmypy |
|
Fork
3.3k
| 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
472
| 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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fmypy%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fmypy%2Fissues%2Fnew%2Fchoose |
| 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
9
| https://github.com/python/mypy/pull/18212 |
|
Commits
9
| https://github.com/python/mypy/pull/18212/commits |
|
Checks
0
| https://github.com/python/mypy/pull/18212/checks |
|
Files changed
| https://github.com/python/mypy/pull/18212/files |
| Please reload this page | 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/files#top |
|
Show all changes
9 commits
| https://github.com/python/mypy/pull/18212/files |
|
5891413
Move the join-based narrowing logic towards a union-based narrowing l…
tyralla Nov 28, 2024
| https://github.com/python/mypy/pull/18212/commits/5891413accb0b14c8209c3fe17ddaf492d945e3f |
|
0e9f99f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 29, 2024
| https://github.com/python/mypy/pull/18212/commits/0e9f99fdd0236f0001a8a4b45c9c0aceb4cd7954 |
|
d70a727
much softer approach
tyralla Dec 1, 2024
| https://github.com/python/mypy/pull/18212/commits/d70a727203d7e509f5e194a362cbaf867d7df21f |
|
c418ad3
Merge remote-tracking branch 'mypypy/narrowing/move_join_based_narrow…
tyralla Dec 1, 2024
| https://github.com/python/mypy/pull/18212/commits/c418ad38934aef0247ba78ca2a065f05a6feef34 |
|
bf8e8b1
fix
tyralla Dec 1, 2024
| https://github.com/python/mypy/pull/18212/commits/bf8e8b1056e2b2b3f2cbf1309ad88ffd9624a35a |
|
31a0401
module import
tyralla Dec 2, 2024
| https://github.com/python/mypy/pull/18212/commits/31a04014fac592ad0056a74d9d04c74c9642ab9c |
|
121d8e1
add error message to assert
tyralla Dec 2, 2024
| https://github.com/python/mypy/pull/18212/commits/121d8e1e64676f1606e3f0f94273221d205dd61d |
|
2c1b1a1
TupleType fallbacks as Instances, not Unions
tyralla Dec 2, 2024
| https://github.com/python/mypy/pull/18212/commits/2c1b1a10b0107b4ab2f566b0cfd0e91e148932d2 |
|
43ed94e
Add test case that would crash without the previous commit
tyralla Dec 2, 2024
| https://github.com/python/mypy/pull/18212/commits/43ed94e692eb56bec169f0cec75e13b5fce466c8 |
|
Clear filters
| https://github.com/python/mypy/pull/18212/files |
| Please reload this page | https://github.com/python/mypy/pull/18212/files |
| Please reload this page | https://github.com/python/mypy/pull/18212/files |
|
join.py
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
check-narrowing.test
| https://github.com/python/mypy/pull/18212/files#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5 |
|
check-redefine.test
| https://github.com/python/mypy/pull/18212/files#diff-f258b3b77d5328cb1a2461e883be36ae095986f0bc4eb2d5d113daaf001cb86a |
| mypy/join.py | https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
View file
| https://github.com/tyralla/mypy/blob/43ed94e692eb56bec169f0cec75e13b5fce466c8/mypy/join.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/mypy/pull/18212/{{ revealButtonHref }} |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
|
| https://github.com/python/mypy/pull/18212/files#diff-dc731faa017a06257ba26e3eacaf17e68a6078aeaf9755d1c06d917fe13ce457 |
| test-data/unit/check-narrowing.test | https://github.com/python/mypy/pull/18212/files#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5 |
|
View file
| https://github.com/tyralla/mypy/blob/43ed94e692eb56bec169f0cec75e13b5fce466c8/test-data/unit/check-narrowing.test |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/mypy/pull/18212/{{ revealButtonHref }} |
|
| https://github.com/python/mypy/pull/18212/files#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5 |
| test-data/unit/check-redefine.test | https://github.com/python/mypy/pull/18212/files#diff-f258b3b77d5328cb1a2461e883be36ae095986f0bc4eb2d5d113daaf001cb86a |
|
View file
| https://github.com/tyralla/mypy/blob/43ed94e692eb56bec169f0cec75e13b5fce466c8/test-data/unit/check-redefine.test |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/mypy/pull/18212/{{ revealButtonHref }} |
|
| https://github.com/python/mypy/pull/18212/files#diff-f258b3b77d5328cb1a2461e883be36ae095986f0bc4eb2d5d113daaf001cb86a |
|
| https://github.com/python/mypy/pull/18212/files#diff-f258b3b77d5328cb1a2461e883be36ae095986f0bc4eb2d5d113daaf001cb86a |
|
| 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 |