René's URL Explorer Experiment


Title: Improve Step 5 of overload call evaluation. by rchen152 · Pull Request #2250 · python/typing · GitHub

Open Graph Title: Improve Step 5 of overload call evaluation. by rchen152 · Pull Request #2250 · python/typing

X Title: Improve Step 5 of overload call evaluation. by rchen152 · Pull Request #2250 · python/typing

Description: Makes two modifications to step 5 of overload call evaluation: When materializing arguments to check whether we can eliminate overloads, skip arguments that have the same parameter type in all overloads. When we still have multiple overloads after the materialization filter, try to find a return type that all materializations of all other return types are assignable to. Updates the conformance tests as well. All type checkers already do (1). Mypy and pyrefly pass the conformance test for (2). I believe mypy has a heuristic that approximates the new rule; pyrefly implements it exactly.

Open Graph Description: Makes two modifications to step 5 of overload call evaluation: When materializing arguments to check whether we can eliminate overloads, skip arguments that have the same parameter type in all ove...

X Description: Makes two modifications to step 5 of overload call evaluation: When materializing arguments to check whether we can eliminate overloads, skip arguments that have the same parameter type in all ove...

Opengraph URL: https://github.com/python/typing/pull/2250

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1b2fd40f-b51d-75c0-81d9-9fc4822c81d1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCDC0:1DA187:13A2879:18E08C4:6AFF98AE
html-safe-noncea0fecc165bc9ad77f850a2a097f9926d577a8a4be74205aeb49c85d0bbcd75ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREMwOjFEQTE4NzoxM0EyODc5OjE4RTA4QzQ6NkFGRjk4QUUiLCJ2aXNpdG9yX2lkIjoiNzE4NTExNzI5NDU0NzE0NjkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc0da5f6cf5c32f74ab7ca162de1c939aa6171d39051b20aa5b6ade4e61ca71d1
hovercard-subject-tagpull_request:3501137013
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typing/pull/2250/files
twitter:imagehttps://avatars.githubusercontent.com/u/4142312?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4142312?s=400&v=4
og:image:altMakes two modifications to step 5 of overload call evaluation: When materializing arguments to check whether we can eliminate overloads, skip arguments that have the same parameter type in all ove...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2c75d045e8c84b51e2ac680086a6dd1eeaf2bc15b82137d22ee5106835d6256c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release525b66d22c4f7e6bb8b62934bec198964f7e8b93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typing/pull/2250/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F2250%2Ffiles
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%2Ftyping%2Fpull%2F2250%2Ffiles
Sign uphttps://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%2Ftyping
Reloadhttps://github.com/python/typing/pull/2250/files
Reloadhttps://github.com/python/typing/pull/2250/files
Reloadhttps://github.com/python/typing/pull/2250/files
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
rchen152https://github.com/rchen152
python:mainhttps://github.com/python/typing/tree/main
rchen152:overloadhttps://github.com/rchen152/typing/tree/overload
Conversation 23 https://github.com/python/typing/pull/2250
Commits 14 https://github.com/python/typing/pull/2250/commits
Checks 3 https://github.com/python/typing/pull/2250/checks
Files changed https://github.com/python/typing/pull/2250/files
Please reload this pagehttps://github.com/python/typing/pull/2250/files
Improve Step 5 of overload call evaluation. https://github.com/python/typing/pull/2250/files#top
Show all changes 14 commits https://github.com/python/typing/pull/2250/files
47637e8 Improve Step 5 of overload call evaluation. rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/47637e8abee15e6df39fbbeda33d2521e5938cac
045a46b Merge branch 'main' into overload rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/045a46b1ae24c47abff237bd879ae470d3cb526e
fbb847e Typo fix rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/fbb847ea897e16c23f058645aa1efad22dc50e9c
89e6130 Remove unsafe overlap in overload example. rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/89e61303803375d11824f4651a185af0ed773e1c
4e7c475 Clarifications rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/4e7c475312291159dd0cc6090406a8e94c1b956c
891f7ae Clarification: unpacked arguments rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/891f7ae7f39c13698f96dfcd994076adf3a7dcb3
137e3fc Consistent style rchen152 Apr 8, 2026 https://github.com/python/typing/pull/2250/commits/137e3fcbcf112f1514e1d2eb8c236d67b78125b1
88a046c Merge branch 'main' into overload rchen152 Apr 14, 2026 https://github.com/python/typing/pull/2250/commits/88a046cb1acfeff98cc6832ee21d807f3b21a10e
bef8d53 Remove redundant paragraph. rchen152 Apr 14, 2026 https://github.com/python/typing/pull/2250/commits/bef8d531cf671bdd2dc5b60628d274ff59fb9735
3e07524 More test. rchen152 Apr 14, 2026 https://github.com/python/typing/pull/2250/commits/3e075246fc5fe51baf9234fc3ac6a74ebe4d73f5
866613b Merge branch 'main' into overload rchen152 Apr 17, 2026 https://github.com/python/typing/pull/2250/commits/866613b3586001e0f7954bd4acbe93344cf4f88a
7d7a176 Only type vars scoped to the current function should be replaced. rchen152 Apr 17, 2026 https://github.com/python/typing/pull/2250/commits/7d7a176d0443f3b7e54715ecd77d2c91469a6066
93eec95 Merge branch 'main' into overload rchen152 Aug 30, 2026 https://github.com/python/typing/pull/2250/commits/93eec95bf56920ea024205e404cf6615303024a0
4f272ef Update ambiguity rule. rchen152 Aug 30, 2026 https://github.com/python/typing/pull/2250/commits/4f272ef110d706aabe3095ad24714a285e7b95d5
Clear filters https://github.com/python/typing/pull/2250/files
Please reload this pagehttps://github.com/python/typing/pull/2250/files
Please reload this pagehttps://github.com/python/typing/pull/2250/files
overloads_evaluation.toml https://github.com/python/typing/pull/2250/files#diff-c52dac3e9924b4441f428fa80c5088139ef24ba8e0507db48ad6de6f3899ccfc
overloads_evaluation.toml https://github.com/python/typing/pull/2250/files#diff-3f34c76d2f3c3d16903bcf6ac6b00139ab160a8604b91d30e22494a155bee166
overloads_evaluation.toml https://github.com/python/typing/pull/2250/files#diff-fb9305e88783ea73f8149848e7ee36bf268a11ef0c246380b7f85f8dbda8085e
overloads_evaluation.toml https://github.com/python/typing/pull/2250/files#diff-f2cae6aba12d7d46702da801e2c8d71eb2aeb2d8764156db47960f57171353b4
results.html https://github.com/python/typing/pull/2250/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
overloads_evaluation.toml https://github.com/python/typing/pull/2250/files#diff-468ba27573f7337e3327b4f100fe2e01211cc71d301c34b25b035504018ae5ca
overloads_evaluation.toml https://github.com/python/typing/pull/2250/files#diff-e64a56e9f2fab73759e2c210cb15f518e8a7fb7092ec85a455718f178e0edb9b
overloads_evaluation.py https://github.com/python/typing/pull/2250/files#diff-958cafd3a7f282c4f64f87021ec90b9f0ee294d670e9551518fc0b0c9c5e1d8f
overload.rst https://github.com/python/typing/pull/2250/files#diff-ff41b27002fb34837c49f8bfba99e618b6a4ff55a8da8c277155495d500a2f19
conformance/results/mypy/overloads_evaluation.tomlhttps://github.com/python/typing/pull/2250/files#diff-c52dac3e9924b4441f428fa80c5088139ef24ba8e0507db48ad6de6f3899ccfc
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/mypy/overloads_evaluation.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
https://github.com/python/typing/pull/2250/files#diff-c52dac3e9924b4441f428fa80c5088139ef24ba8e0507db48ad6de6f3899ccfc
https://github.com/python/typing/pull/2250/files#diff-c52dac3e9924b4441f428fa80c5088139ef24ba8e0507db48ad6de6f3899ccfc
https://github.com/python/typing/pull/2250/files#diff-c52dac3e9924b4441f428fa80c5088139ef24ba8e0507db48ad6de6f3899ccfc
https://github.com/python/typing/pull/2250/files#diff-c52dac3e9924b4441f428fa80c5088139ef24ba8e0507db48ad6de6f3899ccfc
conformance/results/pycroscope/overloads_evaluation.tomlhttps://github.com/python/typing/pull/2250/files#diff-3f34c76d2f3c3d16903bcf6ac6b00139ab160a8604b91d30e22494a155bee166
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/pycroscope/overloads_evaluation.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
conformance/results/pyrefly/overloads_evaluation.tomlhttps://github.com/python/typing/pull/2250/files#diff-fb9305e88783ea73f8149848e7ee36bf268a11ef0c246380b7f85f8dbda8085e
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/pyrefly/overloads_evaluation.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
conformance/results/pyright/overloads_evaluation.tomlhttps://github.com/python/typing/pull/2250/files#diff-f2cae6aba12d7d46702da801e2c8d71eb2aeb2d8764156db47960f57171353b4
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/pyright/overloads_evaluation.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
https://github.com/python/typing/pull/2250/files#diff-f2cae6aba12d7d46702da801e2c8d71eb2aeb2d8764156db47960f57171353b4
conformance/results/results.htmlhttps://github.com/python/typing/pull/2250/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/results.html
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/typing/pull/2250/files
conformance/results/ty/overloads_evaluation.tomlhttps://github.com/python/typing/pull/2250/files#diff-468ba27573f7337e3327b4f100fe2e01211cc71d301c34b25b035504018ae5ca
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/ty/overloads_evaluation.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
conformance/results/zuban/overloads_evaluation.tomlhttps://github.com/python/typing/pull/2250/files#diff-e64a56e9f2fab73759e2c210cb15f518e8a7fb7092ec85a455718f178e0edb9b
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/results/zuban/overloads_evaluation.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
https://github.com/python/typing/pull/2250/files#diff-e64a56e9f2fab73759e2c210cb15f518e8a7fb7092ec85a455718f178e0edb9b
conformance/tests/overloads_evaluation.pyhttps://github.com/python/typing/pull/2250/files#diff-958cafd3a7f282c4f64f87021ec90b9f0ee294d670e9551518fc0b0c9c5e1d8f
View file https://github.com/python/typing/blob/4f272ef110d706aabe3095ad24714a285e7b95d5/conformance/tests/overloads_evaluation.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2250/{{ revealButtonHref }}
https://github.com/python/typing/pull/2250/files#diff-958cafd3a7f282c4f64f87021ec90b9f0ee294d670e9551518fc0b0c9c5e1d8f
https://github.com/python/typing/pull/2250/files#diff-958cafd3a7f282c4f64f87021ec90b9f0ee294d670e9551518fc0b0c9c5e1d8f
https://github.com/python/typing/pull/2250/files#diff-958cafd3a7f282c4f64f87021ec90b9f0ee294d670e9551518fc0b0c9c5e1d8f
Please reload this pagehttps://github.com/python/typing/pull/2250/files
Please reload this pagehttps://github.com/python/typing/pull/2250/files
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.