René's URL Explorer Experiment


Title: Add union math for intelligent indexing by Michael0x2a · Pull Request #6558 · python/mypy · GitHub

Open Graph Title: Add union math for intelligent indexing by Michael0x2a · Pull Request #6558 · python/mypy

X Title: Add union math for intelligent indexing by Michael0x2a · Pull Request #6558 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: This pull request hacks on supports for union math when using Unions of Literals to index into tuples, NamedTuples, and TypedDicts. It also fixes a bug I apparently introduced. Currently, mypy corr...

X Description: This pull request hacks on supports for union math when using Unions of Literals to index into tuples, NamedTuples, and TypedDicts. It also fixes a bug I apparently introduced. Currently, mypy corr...

Opengraph URL: https://github.com/python/mypy/pull/6558

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d0070b7e-7c0d-93e2-e87f-b08582d55891
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id82C8:1DD784:407D1C:5688B8:6B002B4A
html-safe-noncea8516927ea9fe6d7777f7e1cd105927e21b05e843c2565683e2b08e48a6e285b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkM4OjFERDc4NDo0MDdEMUM6NTY4OEI4OjZCMDAyQjRBIiwidmlzaXRvcl9pZCI6IjYxNzY3ODU1NDYxMzI1OTc1NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac55cf52956e865f6a9ec368bf60a68679ca4362a27f3ee272aedf86f91b1fd1b4
hovercard-subject-tagpull_request:261825939
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/mypy/6558/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/add770671647628f3358e57b2bba9eadd4280bd7a8ddd84fd3a7bd9ea2b9ca1e/python/mypy/pull/6558
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/add770671647628f3358e57b2bba9eadd4280bd7a8ddd84fd3a7bd9ea2b9ca1e/python/mypy/pull/6558
og:image:altThis pull request hacks on supports for union math when using Unions of Literals to index into tuples, NamedTuples, and TypedDicts. It also fixes a bug I apparently introduced. Currently, mypy corr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMichael0x2a
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/6558#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F6558
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%2Fpull%2F6558
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/pull/6558
Reloadhttps://github.com/python/mypy/pull/6558
Reloadhttps://github.com/python/mypy/pull/6558
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
Michael0x2ahttps://github.com/Michael0x2a
python:masterhttps://github.com/python/mypy/tree/master
Michael0x2a:add-union-math-for-intelligent-indexinghttps://github.com/Michael0x2a/mypy/tree/add-union-math-for-intelligent-indexing
Conversationhttps://github.com/python/mypy/pull/6558
Commits5 (5)https://github.com/python/mypy/pull/6558/commits
Checkshttps://github.com/python/mypy/pull/6558/checks
Files changedhttps://github.com/python/mypy/pull/6558/files
Add union math for intelligent indexinghttps://github.com/python/mypy/pull/6558#top
Michael0x2ahttps://github.com/Michael0x2a
python:masterhttps://github.com/python/mypy/tree/master
Michael0x2a:add-union-math-for-intelligent-indexinghttps://github.com/Michael0x2a/mypy/tree/add-union-math-for-intelligent-indexing
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Mar 17, 2019https://github.com/python/mypy/pull/6558#issue-421894516
#6262https://github.com/python/mypy/issues/6262
Please reload this pagehttps://github.com/python/mypy/pull/6558
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Mar 18, 2019 https://github.com/python/mypy/pull/6558#pullrequestreview-215545459
View reviewed changes https://github.com/python/mypy/pull/6558/files
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/6558#pullrequestreview-215545459
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/6558
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Mar 18, 2019 https://github.com/python/mypy/pull/6558#ref-pullrequest-422332874
Support method plugin hooks on unions #6560 https://github.com/python/mypy/pull/6560
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
force-pushedhttps://github.com/python/mypy/compare/57caca544aca6793e29af59ae5f58d1269aec392..d198f38df401d7a234d35e3e66b345354e1042c9
57caca5https://github.com/python/mypy/commit/57caca544aca6793e29af59ae5f58d1269aec392
d198f38https://github.com/python/mypy/commit/d198f38df401d7a234d35e3e66b345354e1042c9
Compare https://github.com/python/mypy/compare/57caca544aca6793e29af59ae5f58d1269aec392..d198f38df401d7a234d35e3e66b345354e1042c9
March 31, 2019 19:36https://github.com/python/mypy/pull/6558#event-2241732458
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
force-pushedhttps://github.com/python/mypy/compare/d198f38df401d7a234d35e3e66b345354e1042c9..e1342418eb2a28c73b76a98f155951bcec64b041
d198f38https://github.com/python/mypy/commit/d198f38df401d7a234d35e3e66b345354e1042c9
e134241https://github.com/python/mypy/commit/e1342418eb2a28c73b76a98f155951bcec64b041
Compare https://github.com/python/mypy/compare/d198f38df401d7a234d35e3e66b345354e1042c9..e1342418eb2a28c73b76a98f155951bcec64b041
June 8, 2019 23:27https://github.com/python/mypy/pull/6558#event-2399188741
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jul 2, 2019 https://github.com/python/mypy/pull/6558#ref-issue-463399598
Release 0.720 planning #7137 https://github.com/python/mypy/issues/7137
ilevkivskyihttps://github.com/ilevkivskyi
Jul 4, 2019 https://github.com/python/mypy/pull/6558#ref-commit-72734f2
https://github.com/ilevkivskyi
Support method plugin hooks on unions (https://github.com/python/mypy/commit/72734f2d13455321fc891d1aecfa6e5c8fa46aff
#6560https://github.com/python/mypy/pull/6560
)https://github.com/python/mypy/commit/72734f2d13455321fc891d1aecfa6e5c8fa46aff
72734f2https://github.com/python/mypy/commit/72734f2d13455321fc891d1aecfa6e5c8fa46aff
#6117https://github.com/python/mypy/issues/6117
#5930https://github.com/python/mypy/issues/5930
#6558https://github.com/python/mypy/pull/6558
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jul 4, 2019https://github.com/python/mypy/pull/6558#issuecomment-508296804
#6560https://github.com/python/mypy/pull/6560
Please reload this pagehttps://github.com/python/mypy/pull/6558
Michael0x2ahttps://github.com/Michael0x2a
July 4, 2019 09:37https://github.com/python/mypy/pull/6558#commits-pushed-e87a4ad
https://github.com/Michael0x2a
Add union math for intelligent indexinghttps://github.com/python/mypy/pull/6558/commits/e87a4ad33c27b13255028440cd45d77b43f052cb
e87a4adhttps://github.com/python/mypy/pull/6558/commits/e87a4ad33c27b13255028440cd45d77b43f052cb
python#6262https://github.com/python/mypy/issues/6262
https://github.com/Michael0x2a
Update 'reveal_type(...)' error messages to be noteshttps://github.com/python/mypy/pull/6558/commits/ac0f317bbee073f36e0926bd9c87d8f7b3142335
ac0f317https://github.com/python/mypy/pull/6558/commits/ac0f317bbee073f36e0926bd9c87d8f7b3142335
https://github.com/Michael0x2a
Add test where we also try a union of typed dictshttps://github.com/python/mypy/pull/6558/commits/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
be7210fhttps://github.com/python/mypy/pull/6558/commits/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
force-pushedhttps://github.com/python/mypy/compare/e1342418eb2a28c73b76a98f155951bcec64b041..be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
e134241https://github.com/python/mypy/commit/e1342418eb2a28c73b76a98f155951bcec64b041
be7210fhttps://github.com/python/mypy/commit/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
Compare https://github.com/python/mypy/compare/e1342418eb2a28c73b76a98f155951bcec64b041..be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
July 4, 2019 17:10https://github.com/python/mypy/pull/6558#event-2461094437
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jul 4, 2019https://github.com/python/mypy/pull/6558#issuecomment-508541823
@ilevkivskyihttps://github.com/ilevkivskyi
#6560https://github.com/python/mypy/pull/6560
Please reload this pagehttps://github.com/python/mypy/pull/6558
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jul 4, 2019 https://github.com/python/mypy/pull/6558#pullrequestreview-258180300
View reviewed changes https://github.com/python/mypy/pull/6558/files/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/6558#pullrequestreview-258180300
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/6558
mypy/checkexpr.pyhttps://github.com/python/mypy/pull/6558/files/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c#diff-42eda644ce5003e33ea0766d7601fcfb4934ad106429abfe115954a1fccddd07
ilevkivskyihttps://github.com/ilevkivskyi
Jul 4, 2019https://github.com/python/mypy/pull/6558#discussion_r300507711
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/6558
mypy/checkexpr.pyhttps://github.com/python/mypy/pull/6558/files/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c#diff-42eda644ce5003e33ea0766d7601fcfb4934ad106429abfe115954a1fccddd07
ilevkivskyihttps://github.com/ilevkivskyi
Jul 4, 2019https://github.com/python/mypy/pull/6558#discussion_r300507881
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/6558
mypy/checkexpr.pyhttps://github.com/python/mypy/pull/6558/files/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c#diff-42eda644ce5003e33ea0766d7601fcfb4934ad106429abfe115954a1fccddd07
ilevkivskyihttps://github.com/ilevkivskyi
Jul 4, 2019https://github.com/python/mypy/pull/6558#discussion_r300508228
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/6558
Michael0x2ahttps://github.com/Michael0x2a
Jul 9, 2019https://github.com/python/mypy/pull/6558#discussion_r301406032
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#6123https://github.com/python/mypy/issues/6123
Please reload this pagehttps://github.com/python/mypy/pull/6558
Michael0x2ahttps://github.com/Michael0x2a
July 8, 2019 13:20https://github.com/python/mypy/pull/6558#commits-pushed-2174a68
https://github.com/Michael0x2a
Merge branch 'master' into add-union-math-for-intelligent-indexinghttps://github.com/python/mypy/pull/6558/commits/2174a687e5c28f91602bb6b4ff58a249dbaf1c41
2174a68https://github.com/python/mypy/pull/6558/commits/2174a687e5c28f91602bb6b4ff58a249dbaf1c41
https://github.com/Michael0x2a
Rename and document '_get_value'https://github.com/python/mypy/pull/6558/commits/99e219e99c9f540a3f1a3410a8a02e5870faec04
99e219ehttps://github.com/python/mypy/pull/6558/commits/99e219e99c9f540a3f1a3410a8a02e5870faec04
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jul 8, 2019https://github.com/python/mypy/pull/6558#issuecomment-509416029
@Michael0x2ahttps://github.com/Michael0x2a
Please reload this pagehttps://github.com/python/mypy/pull/6558
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
e7ddba1https://github.com/python/mypy/commit/e7ddba113d69055387996df33ceaace52b8c2c97
Jul 9, 2019https://github.com/python/mypy/pull/6558#event-2468169004
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
July 9, 2019 05:46https://github.com/python/mypy/pull/6558#event-2468169104
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jul 9, 2019https://github.com/python/mypy/pull/6558#issuecomment-509498346
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/6558
https://github.co/hiddenchars
https://github.com/python/mypy/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F6558
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/6558/files/be7210fc3e97ef73c660356255a8ae0cc0a7dc2c
Please reload this pagehttps://github.com/python/mypy/pull/6558
Using Literal typed variables as keys for TypedDict causes "TypedDict key must be a string literal" https://github.com/python/mypy/issues/6262
Please reload this pagehttps://github.com/python/mypy/pull/6558
https://github.com/Michael0x2a
https://github.com/ilevkivskyi
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.