René's URL Explorer Experiment


Title: Filter overload items based on self type during type inference by JukkaL · Pull Request #17873 · python/mypy · GitHub

Open Graph Title: Filter overload items based on self type during type inference by JukkaL · Pull Request #17873 · python/mypy

X Title: Filter overload items based on self type during type inference by JukkaL · Pull Request #17873 · python/mypy

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

Open Graph Description: Fix type argument inference for overloaded functions with explicit self types. Filter out the overload items based on the declared and actual types of self. The implementation is best effort and do...

X Description: Fix type argument inference for overloaded functions with explicit self types. Filter out the overload items based on the declared and actual types of self. The implementation is best effort and do...

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

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:0e6ecbd6-3ece-31a7-5ceb-a352e84e7ee2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC614:396A8E:17632E7:1F0A9E6:6B0027CB
html-safe-nonceb59c37c0a643834cf81b4fe575890816a3ee757beb279950b30b19eb2954eab9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjE0OjM5NkE4RToxNzYzMkU3OjFGMEE5RTY6NkIwMDI3Q0IiLCJ2aXNpdG9yX2lkIjoiODE2NDY3MTkwNzM4MDA3ODUzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac437ef95d2b3d483eeee6f5a700262aceaeb4d60bd25db5e1378350585f691559
hovercard-subject-tagpull_request:2105571051
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/17873/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b54d0755218f3d97cd2ba8b708bcf71ea4ac99cad05679f502c52dfa4bb4296f/python/mypy/pull/17873
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b54d0755218f3d97cd2ba8b708bcf71ea4ac99cad05679f502c52dfa4bb4296f/python/mypy/pull/17873
og:image:altFix type argument inference for overloaded functions with explicit self types. Filter out the overload items based on the declared and actual types of self. The implementation is best effort and do...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJukkaL
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/17873#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17873
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%2F17873
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/17873
Reloadhttps://github.com/python/mypy/pull/17873
Reloadhttps://github.com/python/mypy/pull/17873
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
JukkaLhttps://github.com/JukkaL
masterhttps://github.com/python/mypy/tree/master
fix-type-var-valueshttps://github.com/python/mypy/tree/fix-type-var-values
Conversationhttps://github.com/python/mypy/pull/17873
Commits11 (11)https://github.com/python/mypy/pull/17873/commits
Checkshttps://github.com/python/mypy/pull/17873/checks
Files changedhttps://github.com/python/mypy/pull/17873/files
Filter overload items based on self type during type inferencehttps://github.com/python/mypy/pull/17873#top
JukkaLhttps://github.com/JukkaL
masterhttps://github.com/python/mypy/tree/master
fix-type-var-valueshttps://github.com/python/mypy/tree/fix-type-var-values
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Oct 3, 2024https://github.com/python/mypy/pull/17873#issue-2564068618
Please reload this pagehttps://github.com/python/mypy/pull/17873
#14975https://github.com/python/mypy/pull/14975
@tyrallahttps://github.com/tyralla
#14975https://github.com/python/mypy/pull/14975
#15031https://github.com/python/mypy/issues/15031
#17863https://github.com/python/mypy/issues/17863
@tyrallahttps://github.com/tyralla
Please reload this pagehttps://github.com/python/mypy/pull/17873
JukkaLhttps://github.com/JukkaL
October 2, 2024 16:21https://github.com/python/mypy/pull/17873#commits-pushed-da2405e
https://github.com/JukkaL
WIP add test casehttps://github.com/python/mypy/pull/17873/commits/da2405e29fa4627ef2c66ea94f68124b9e7c6da1
da2405ehttps://github.com/python/mypy/pull/17873/commits/da2405e29fa4627ef2c66ea94f68124b9e7c6da1
https://github.com/JukkaL
Simplify testhttps://github.com/python/mypy/pull/17873/commits/fcb9192eb532275686386fdf487c2b4566d39a18
fcb9192https://github.com/python/mypy/pull/17873/commits/fcb9192eb532275686386fdf487c2b4566d39a18
https://github.com/JukkaL
WIP attempted fixhttps://github.com/python/mypy/pull/17873/commits/595b8a510a459f9f2c24f6c14743f56e286d7c59
595b8a5https://github.com/python/mypy/pull/17873/commits/595b8a510a459f9f2c24f6c14743f56e286d7c59
https://github.com/JukkaL
Improvementshttps://github.com/python/mypy/pull/17873/commits/cd3bb19d150d5182f89143688bbe6e5918ea3a8d
cd3bb19https://github.com/python/mypy/pull/17873/commits/cd3bb19d150d5182f89143688bbe6e5918ea3a8d
https://github.com/JukkaL
Updatehttps://github.com/python/mypy/pull/17873/commits/cb7b4b64a971578b5169d113427e28a79e677a6a
cb7b4b6https://github.com/python/mypy/pull/17873/commits/cb7b4b64a971578b5169d113427e28a79e677a6a
https://github.com/JukkaL
Refactor and make tweakshttps://github.com/python/mypy/pull/17873/commits/f950a3926589b6cadcedc23bfb5e57fe9b1d411e
f950a39https://github.com/python/mypy/pull/17873/commits/f950a3926589b6cadcedc23bfb5e57fe9b1d411e
https://github.com/JukkaL
Optimizehttps://github.com/python/mypy/pull/17873/commits/310730b66bfb86a72a70ccc28241279d2fab4061
310730bhttps://github.com/python/mypy/pull/17873/commits/310730b66bfb86a72a70ccc28241279d2fab4061
https://github.com/JukkaL
Add test casehttps://github.com/python/mypy/pull/17873/commits/4de9b67e90a023125010466e34eebbe14f24900a
4de9b67https://github.com/python/mypy/pull/17873/commits/4de9b67e90a023125010466e34eebbe14f24900a
https://github.com/JukkaL
Add test case fromhttps://github.com/python/mypy/pull/17873/commits/86c11240ce7c9f1d6fb0150cdd0062bb28d59476
#14975https://github.com/python/mypy/pull/14975
byhttps://github.com/python/mypy/pull/17873/commits/86c11240ce7c9f1d6fb0150cdd0062bb28d59476
@tyrallahttps://github.com/tyralla
86c1124https://github.com/python/mypy/pull/17873/commits/86c11240ce7c9f1d6fb0150cdd0062bb28d59476
https://github.com/JukkaL
Move tests to check-protocols.testhttps://github.com/python/mypy/pull/17873/commits/71a94224b38c15a22f7f122ba72911c15e89fdc6
71a9422https://github.com/python/mypy/pull/17873/commits/71a94224b38c15a22f7f122ba72911c15e89fdc6
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Oct 3, 2024https://github.com/python/mypy/pull/17873#issuecomment-2391432119
#14975https://github.com/python/mypy/pull/14975
@tyrallahttps://github.com/tyralla
Please reload this pagehttps://github.com/python/mypy/pull/17873
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
ilevkivskyihttps://github.com/ilevkivskyi
October 3, 2024 13:34https://github.com/python/mypy/pull/17873#event-14504655365
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Oct 3, 2024 https://github.com/python/mypy/pull/17873#pullrequestreview-2345675441
View reviewed changes https://github.com/python/mypy/pull/17873/files/71a94224b38c15a22f7f122ba72911c15e89fdc6
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/17873#pullrequestreview-2345675441
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/17873
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17873
https://github.com/JukkaL
Preserve old behavior in some error caseshttps://github.com/python/mypy/pull/17873/commits/87ac981d0c8a8c293978a2c7a3204a1fee4c4eca
87ac981https://github.com/python/mypy/pull/17873/commits/87ac981d0c8a8c293978a2c7a3204a1fee4c4eca
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 3, 2024https://github.com/python/mypy/pull/17873#issuecomment-2391618193
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/17873
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Oct 3, 2024https://github.com/python/mypy/pull/17873#issuecomment-2391678589
Please reload this pagehttps://github.com/python/mypy/pull/17873
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
3c09b32https://github.com/python/mypy/commit/3c09b3241d22e21d7fa160ae444a93c9487a927f
Oct 3, 2024https://github.com/python/mypy/pull/17873#event-14506185889
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
October 3, 2024 15:12https://github.com/python/mypy/pull/17873#event-14506186402
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Oct 24, 2024 https://github.com/python/mypy/pull/17873#ref-issue-2612340026
[1.12 regression] mypy no longer recognises descriptors/get that bind self #18036 https://github.com/python/mypy/issues/18036
Cannot infer type argument from overloaded function with explicit self types #14943 https://github.com/python/mypy/issues/14943
Fix type argument inference for overloaded functions with explicit self types (Fixes #14943). #14975 https://github.com/python/mypy/pull/14975
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%2F17873
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/17873/files/71a94224b38c15a22f7f122ba72911c15e89fdc6
Please reload this pagehttps://github.com/python/mypy/pull/17873
Regression: IO[str] not compatible with SupportsWrite[AnyStr] https://github.com/python/mypy/issues/17863
shutil.copyfileobj stopped working in 1.2.0 https://github.com/python/mypy/issues/15031
Please reload this pagehttps://github.com/python/mypy/pull/17873
https://github.com/JukkaL
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.