René's URL Explorer Experiment


Title: Fix attribute type resolution with multiple inheritance by sterliakov · Pull Request #18415 · python/mypy · GitHub

Open Graph Title: Fix attribute type resolution with multiple inheritance by sterliakov · Pull Request #18415 · python/mypy

X Title: Fix attribute type resolution with multiple inheritance by sterliakov · Pull Request #18415 · python/mypy

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

Open Graph Description: Fixes #18268. Fixes #9319. Fixes #14279. Fixes #9031. Supersedes #18270 as requested by @ilevkivskyi. This PR introduces two changes: Add missing map_type_from_supertype when checking generic attr...

X Description: Fixes #18268. Fixes #9319. Fixes #14279. Fixes #9031. Supersedes #18270 as requested by @ilevkivskyi. This PR introduces two changes: Add missing map_type_from_supertype when checking generic attr...

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

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:42f9fd8f-b00f-cb09-f99a-d82e03625252
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1E6:B7CF9:ADFD33:E7B884:6B0047E9
html-safe-nonce9c62999aabb7169e1dedbac8947f864c60c68e30db239c18c3f5b10a17502b71
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUU2OkI3Q0Y5OkFERkQzMzpFN0I4ODQ6NkIwMDQ3RTkiLCJ2aXNpdG9yX2lkIjoiODQzOTc3NDc3OTM5MjgzOTQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca395eefa22a81e99d1f4837eec3237cfb1dce5e78c7327c3677511bd105008a1
hovercard-subject-tagpull_request:2260546638
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/18415/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cf0ba2e80d1b8e3133a8860083ce77e2c7e13caedeb65c3b517e98e08956926f/python/mypy/pull/18415
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf0ba2e80d1b8e3133a8860083ce77e2c7e13caedeb65c3b517e98e08956926f/python/mypy/pull/18415
og:image:altFixes #18268. Fixes #9319. Fixes #14279. Fixes #9031. Supersedes #18270 as requested by @ilevkivskyi. This PR introduces two changes: Add missing map_type_from_supertype when checking generic attr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesterliakov
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/18415#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18415
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%2F18415
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/18415
Reloadhttps://github.com/python/mypy/pull/18415
Reloadhttps://github.com/python/mypy/pull/18415
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 requests545 (545)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
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
sterliakov:bugfix/st-multiple-inheritance-reducedhttps://github.com/sterliakov/mypy/tree/bugfix/st-multiple-inheritance-reduced
Conversationhttps://github.com/python/mypy/pull/18415
Commits5 (5)https://github.com/python/mypy/pull/18415/commits
Checkshttps://github.com/python/mypy/pull/18415/checks
Files changedhttps://github.com/python/mypy/pull/18415/files
Fix attribute type resolution with multiple inheritancehttps://github.com/python/mypy/pull/18415#top
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
sterliakov:bugfix/st-multiple-inheritance-reducedhttps://github.com/sterliakov/mypy/tree/bugfix/st-multiple-inheritance-reduced
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jan 4, 2025https://github.com/python/mypy/pull/18415#issue-2769029281
#18268https://github.com/python/mypy/issues/18268
#9319https://github.com/python/mypy/issues/9319
#14279https://github.com/python/mypy/issues/14279
#9031https://github.com/python/mypy/issues/9031
#18270https://github.com/python/mypy/pull/18270
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/18415
sterliakovhttps://github.com/sterliakov
January 4, 2025 23:27https://github.com/python/mypy/pull/18415#commits-pushed-e8ccf89
https://github.com/sterliakov
Map TypeVar-valued attributes to the checked basehttps://github.com/python/mypy/pull/18415/commits/e8ccf89ec17a34cf04df26e520f23d0ec68a7d53
e8ccf89https://github.com/python/mypy/pull/18415/commits/e8ccf89ec17a34cf04df26e520f23d0ec68a7d53
https://github.com/sterliakov
Only compare the most derived base defining name with all others - fo…https://github.com/python/mypy/pull/18415/commits/f04fd933566f964071e5cf3eff811153aaf53437
f04fd93https://github.com/python/mypy/pull/18415/commits/f04fd933566f964071e5cf3eff811153aaf53437
https://github.com/sterliakov
Fix own typinghttps://github.com/python/mypy/pull/18415/commits/4d6bdf44e226efd6c0865deab4de24a6b95c6acf
4d6bdf4https://github.com/python/mypy/pull/18415/commits/4d6bdf44e226efd6c0865deab4de24a6b95c6acf
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18415
https://github.com/sterliakov
Sort names for consistent diagnostics orderhttps://github.com/python/mypy/pull/18415/commits/503c1459d6d68593989c38361f30ee87caf94c2f
503c145https://github.com/python/mypy/pull/18415/commits/503c1459d6d68593989c38361f30ee87caf94c2f
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18415
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
January 5, 2025 02:21https://github.com/python/mypy/pull/18415#event-15816549332
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jan 10, 2025 https://github.com/python/mypy/pull/18415#pullrequestreview-2541424467
View reviewed changes https://github.com/python/mypy/pull/18415/files/503c1459d6d68593989c38361f30ee87caf94c2f
hauntsaninjahttps://github.com/hauntsaninja
https://github.com/python/mypy/pull/18415#pullrequestreview-2541424467
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/18415
test-data/unit/check-multiple-inheritance.testhttps://github.com/python/mypy/pull/18415/files/503c1459d6d68593989c38361f30ee87caf94c2f#diff-2e77c7af76f2b969a36e650678361e7464d82ab22382cbedb222a768b1b9e686
Please reload this pagehttps://github.com/python/mypy/pull/18415
test-data/unit/check-multiple-inheritance.testhttps://github.com/python/mypy/pull/18415/files/503c1459d6d68593989c38361f30ee87caf94c2f#diff-2e77c7af76f2b969a36e650678361e7464d82ab22382cbedb222a768b1b9e686
hauntsaninjahttps://github.com/hauntsaninja
Jan 10, 2025https://github.com/python/mypy/pull/18415#discussion_r1909691800
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/18415
sterliakovhttps://github.com/sterliakov
Jan 10, 2025https://github.com/python/mypy/pull/18415#discussion_r1910576006
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/18415
https://github.com/sterliakov
https://github.com/hauntsaninja
FIx a typo in testcase namehttps://github.com/python/mypy/pull/18415/commits/44ccc383e85f142e3420c12b93bc57a431a95bcc
44ccc38https://github.com/python/mypy/pull/18415/commits/44ccc383e85f142e3420c12b93bc57a431a95bcc
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jan 10, 2025https://github.com/python/mypy/pull/18415#issuecomment-2583139336
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/18415
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jan 10, 2025 https://github.com/python/mypy/pull/18415#ref-pullrequest-2781195285
Fix parent generics mapping when overriding generic attribute with property #18441 https://github.com/python/mypy/pull/18441
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jan 11, 2025 https://github.com/python/mypy/pull/18415#pullrequestreview-2545129565
View reviewed changes https://github.com/python/mypy/pull/18415/files/44ccc383e85f142e3420c12b93bc57a431a95bcc
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
d86b1e5https://github.com/python/mypy/commit/d86b1e52a865cde01a4fbc142ec3d28d00dc6e48
Jan 11, 2025https://github.com/python/mypy/pull/18415#event-15893400162
ilevkivskyihttps://github.com/ilevkivskyi
Jan 11, 2025 https://github.com/python/mypy/pull/18415#ref-commit-9274a07
https://github.com/sterliakov
https://github.com/hauntsaninja
Fix parent generics mapping when overriding generic attribute with pr…https://github.com/python/mypy/commit/9274a07bfa3c92b38fe35cf9736beb068ae9196b
9274a07https://github.com/python/mypy/commit/9274a07bfa3c92b38fe35cf9736beb068ae9196b
#18441https://github.com/python/mypy/pull/18441
#18189https://github.com/python/mypy/issues/18189
#18415https://github.com/python/mypy/pull/18415
https://github.com/UnknownPlatypus
UnknownPlatypushttps://github.com/UnknownPlatypus
Nov 8, 2026 https://github.com/python/mypy/pull/18415#ref-issue-1434963736
False positive when using mixins with DeleteView typeddjango/django-stubs#1227 https://github.com/typeddjango/django-stubs/issues/1227
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%2F18415
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/mypy/pull/18415/files/503c1459d6d68593989c38361f30ee87caf94c2f
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/18415/files/44ccc383e85f142e3420c12b93bc57a431a95bcc
Please reload this pagehttps://github.com/python/mypy/pull/18415
Multiple inheritance with Generic leads to [misc] error https://github.com/python/mypy/issues/18268
Wrong check on multiple inheritance https://github.com/python/mypy/issues/14279
Incompatible definition of methods reported when using multiple inheritance https://github.com/python/mypy/issues/9319
Incompatible definition of generic field on multiple base classes https://github.com/python/mypy/issues/9031
Please reload this pagehttps://github.com/python/mypy/pull/18415
https://github.com/sterliakov
https://github.com/ilevkivskyi
https://github.com/hauntsaninja
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.