René's URL Explorer Experiment


Title: [PEP 695] Fix incorrect Variance Computation with Polymorphic Methods. by randolf-scholz · Pull Request #19466 · python/mypy · GitHub

Open Graph Title: [PEP 695] Fix incorrect Variance Computation with Polymorphic Methods. by randolf-scholz · Pull Request #19466 · python/mypy

X Title: [PEP 695] Fix incorrect Variance Computation with Polymorphic Methods. by randolf-scholz · Pull Request #19466 · python/mypy

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

Open Graph Description: Fixes [PEP 695] Incorrect Variance Computation with Self | other return type #20997 Fixes Generic method in generic class impacting type signature of unrelated method #20644 Fixes [PEP 695] Incorre...

X Description: Fixes [PEP 695] Incorrect Variance Computation with Self | other return type #20997 Fixes Generic method in generic class impacting type signature of unrelated method #20644 Fixes [PEP 695] Incorre...

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

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:d5d56a40-3b0d-4ed7-8023-2c67b30e9384
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9D4A:2D8191:CA34A2:10D1D93:6B004FF2
html-safe-noncec9fc86343ff016795bf04e266123c945af8102e44a0d669d9a68a0a2c6040ede
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDRBOjJEODE5MTpDQTM0QTI6MTBEMUQ5Mzo2QjAwNEZGMiIsInZpc2l0b3JfaWQiOiI4MTA5NzY4NjQ3OTIyMzYwMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac86b4831c745947d3bbb7abf8e8e942b348f403285964d6e8751564a2cdcba832
hovercard-subject-tagpull_request:2670995040
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/19466/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/583d0099a2576735e52af684053606dd47e323b325bdb70030ad2659da9f60c0/python/mypy/pull/19466
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/583d0099a2576735e52af684053606dd47e323b325bdb70030ad2659da9f60c0/python/mypy/pull/19466
og:image:altFixes [PEP 695] Incorrect Variance Computation with Self | other return type #20997 Fixes Generic method in generic class impacting type signature of unrelated method #20644 Fixes [PEP 695] Incorre...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerandolf-scholz
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
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
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/19466#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
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%2F19466
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/19466
Reloadhttps://github.com/python/mypy/pull/19466
Reloadhttps://github.com/python/mypy/pull/19466
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 requests546 (546)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
randolf-scholzhttps://github.com/randolf-scholz
python:masterhttps://github.com/python/mypy/tree/master
randolf-scholz:fix_variance_polymorphic_constructorhttps://github.com/randolf-scholz/mypy/tree/fix_variance_polymorphic_constructor
Conversationhttps://github.com/python/mypy/pull/19466
Commits18 (18)https://github.com/python/mypy/pull/19466/commits
Checkshttps://github.com/python/mypy/pull/19466/checks
Files changedhttps://github.com/python/mypy/pull/19466/files
[PEP 695] Fix incorrect Variance Computation with Polymorphic Methods.https://github.com/python/mypy/pull/19466#top
randolf-scholzhttps://github.com/randolf-scholz
python:masterhttps://github.com/python/mypy/tree/master
randolf-scholz:fix_variance_polymorphic_constructorhttps://github.com/randolf-scholz/mypy/tree/fix_variance_polymorphic_constructor
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Jul 16, 2025https://github.com/python/mypy/pull/19466#issue-3236270200
Please reload this pagehttps://github.com/python/mypy/pull/19466
[PEP 695] Incorrect Variance Computation with Self | other return type #20997https://github.com/python/mypy/issues/20997
Generic method in generic class impacting type signature of unrelated method #20644https://github.com/python/mypy/issues/20644
[PEP 695] Incorrect Variance Computation with Polymorphic Constructor. #19439https://github.com/python/mypy/issues/19439
generic is incorrectly inferred as invariant if class uses Self type on an attribute #18334https://github.com/python/mypy/issues/18334
Self not accepted when used with a dataclass #18920https://github.com/python/mypy/issues/18920
testPEP695InferVariancePolymorphicMethodhttps://mypy-play.net/?mypy=1.17.0&python=3.12&gist=9ad67340082664afdd8bf725122c98da
testPEP695SelfAttributehttps://mypy-play.net/?mypy=latest&python=3.12&gist=eb425d9cd595d5ed9235dbf5bca99855
typeops.py#L470https://github.com/python/mypy/blob/02a472a0dbb7d21810ef2c56626eba2113e5a049/mypy/typeops.py#L470
subtypes.py#L2211https://github.com/python/mypy/blob/02a472a0dbb7d21810ef2c56626eba2113e5a049/mypy/subtypes.py#L2211
typeops.py#L470https://github.com/python/mypy/blob/02a472a0dbb7d21810ef2c56626eba2113e5a049/mypy/typeops.py#L470
subtypes.py#L2211https://github.com/python/mypy/blob/02a472a0dbb7d21810ef2c56626eba2113e5a049/mypy/subtypes.py#L2211
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
use plain_self as subtitution type for selfhttps://github.com/python/mypy/pull/19466/commits/d7b88cc6bf5498dff56b351a6a037779513579df
d7b88cchttps://github.com/python/mypy/pull/19466/commits/d7b88cc6bf5498dff56b351a6a037779513579df
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 16, 2025 https://github.com/python/mypy/pull/19466#pullrequestreview-3025554417
View reviewed changes https://github.com/python/mypy/pull/19466/files/d7b88cc6bf5498dff56b351a6a037779513579df
mypy/subtypes.pyhttps://github.com/python/mypy/pull/19466/files/d7b88cc6bf5498dff56b351a6a037779513579df#diff-3641fc675bdf772ec816dbb1b8ef258e9f07c15f604d83d7549bf7b873757a54
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
randolf-scholzhttps://github.com/randolf-scholz
July 16, 2025 17:42https://github.com/python/mypy/pull/19466#commits-pushed-a0b037e
https://github.com/randolf-scholz
https://github.com/sterliakov
Update mypy/subtypes.pyhttps://github.com/python/mypy/pull/19466/commits/a0b037eec1405a69528a8de531ac98324a598831
a0b037ehttps://github.com/python/mypy/pull/19466/commits/a0b037eec1405a69528a8de531ac98324a598831
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/ab680d149fbd1b03a296701f43614ee8c0cabc3b
ab680d1https://github.com/python/mypy/pull/19466/commits/ab680d149fbd1b03a296701f43614ee8c0cabc3b
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 16, 2025 https://github.com/python/mypy/pull/19466#pullrequestreview-3026977938
View reviewed changes https://github.com/python/mypy/pull/19466/files/9870139e20391f16f2577b4702b553210d045338
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/0f33c796e39044129ece9c59715dac9de5ecbadf
0f33c79https://github.com/python/mypy/pull/19466/commits/0f33c796e39044129ece9c59715dac9de5ecbadf
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/5d16a08aef23bc4bce25b0141d653f1e46782fc3
5d16a08https://github.com/python/mypy/pull/19466/commits/5d16a08aef23bc4bce25b0141d653f1e46782fc3
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/25e8efad77d4412e6a15d1d4ba8c1fc042213574
25e8efahttps://github.com/python/mypy/pull/19466/commits/25e8efad77d4412e6a15d1d4ba8c1fc042213574
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Sep 2, 2025https://github.com/python/mypy/pull/19466#issuecomment-3243425659
#18334https://github.com/python/mypy/issues/18334
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 2, 2025 https://github.com/python/mypy/pull/19466#ref-issue-3373980845
Check #19466 sterliakov/mypy-issues#164 https://github.com/sterliakov/mypy-issues/issues/164
randolf-scholzhttps://github.com/randolf-scholz
September 16, 2025 14:44https://github.com/python/mypy/pull/19466#commits-pushed-9870139
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/9870139e20391f16f2577b4702b553210d045338
9870139https://github.com/python/mypy/pull/19466/commits/9870139e20391f16f2577b4702b553210d045338
https://github.com/randolf-scholz
added unit test for 18334https://github.com/python/mypy/pull/19466/commits/0b2aead8a4aa1ca30ef7d0ed480ae787b56bf446
0b2aeadhttps://github.com/python/mypy/pull/19466/commits/0b2aead8a4aa1ca30ef7d0ed480ae787b56bf446
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Sep 16, 2025https://github.com/python/mypy/pull/19466#issuecomment-3298624024
@sterliakovhttps://github.com/sterliakov
#18334https://github.com/python/mypy/issues/18334
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/307382e93b404393c51d9d89d57e376e8643dbf9
307382ehttps://github.com/python/mypy/pull/19466/commits/307382e93b404393c51d9d89d57e376e8643dbf9
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
sterliakovhttps://github.com/sterliakov
October 6, 2025 16:03https://github.com/python/mypy/pull/19466#event-20119775585
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 6, 2025https://github.com/python/mypy/pull/19466#issuecomment-3372526069
@sterliakovhttps://github.com/sterliakov
#19517https://github.com/python/mypy/pull/19517
#19471https://github.com/python/mypy/pull/19471
#19449https://github.com/python/mypy/pull/19449
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Oct 6, 2025https://github.com/python/mypy/pull/19466#issuecomment-3374467631
Please reload this pagehttps://github.com/python/mypy/pull/19466
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 7, 2025https://github.com/python/mypy/pull/19466#issuecomment-3375748978
Please reload this pagehttps://github.com/python/mypy/pull/19466
pyright-playgroundhttps://pyright-play.net/?code=MYGwhgzhAECyCWAPApgEwNoBUA00CqAugFwBQ050qyAZtAHbIDu6AygQBQTIjVHQBECFBha5C-XAGtkATz6joANzAg%2BeAJTQAtAD5oAOQD2DPgDpzJElVoAXZBBsB9YIfaI%2BQtOgcAnXPDobAk1dOCQvQwAjACtkYBt-QOIyCh9kGwBXHzpoRAp8gsLyAGJoAFtIOx8%2BQBlyaAAFACU%2BQFByXAAHGR94AHMACxtWy2toOwdnYxsfMDcPcIwo2PjEoJC9TwxfFeT8tMzs3KKjgtKKh2Rq6BaG5ugajq7egdrhmlH7JzpDRkcIDMj2HIwsJ0Is4gloAFVto9EYTCkStBfEoVBlkJCYJAIL06GBIiB0TZDNAwfFRjJ2shTAjoDJTAxGOxpDIALy%2BdjqXDKEAsgAMmnyp0qF1aN1aD26-UGV1etg%2BjgZvwylJ8s2BXi2kKSawMxmQpEFJJi4PJlIx9EMNmgWJxeIJo2JyOU3TtVJpiHpTCZshZpJsHK5KhZAEYBULzpc6k1ahKntKajSrG8xp8mI5lcBKmqNt4ptsdXD9TTSnZgH06PBMyAQDJcHroC4MiBUNAM5VoNR4D4HAaKAAvOYgv3baAsw6Is5VWpiq6xqVDfJ90fqhbG5ZaoIcml9z2M5m%2Btf%2BzkonmhifCy7XaOz6CdSXPGVAA
mypy-playgroundhttps://mypy-play.net/?mypy=master&python=3.12&gist=13c2138859ffdaf5efc7670cc675ad17
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Oct 7, 2025https://github.com/python/mypy/pull/19466#issuecomment-3377175240
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 7, 2025https://github.com/python/mypy/pull/19466#issuecomment-3377323404
Please reload this pagehttps://github.com/python/mypy/pull/19466
mypy-playhttps://mypy-play.net/?mypy=latest&python=3.12&gist=b672e8690ad3abfb141634d3cfdf46ea
pyright-playhttps://pyright-play.net/?code=MYGwhgzhAEBiD28DaAVAugLmgB0hAUPgCYCmAZtAC4kSUD6w8AFAB5YLICWAdpWgJTQAtAD44iJPABGAKxLA%2BWAE4lKAVyXdoLYuSo16jXkrCt2E6XIUDhYjkh6LoK9Zu2F8QA
#19439https://github.com/python/mypy/issues/19439
https://mypy-play.net/?mypy=latest&python=3.12&gist=811ae6429e7e0e05ba06e34d2daed000https://mypy-play.net/?mypy=latest&python=3.12&gist=811ae6429e7e0e05ba06e34d2daed000
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Oct 7, 2025https://github.com/python/mypy/pull/19466#issuecomment-3377367575
Please reload this pagehttps://github.com/python/mypy/pull/19466
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 7, 2025https://github.com/python/mypy/pull/19466#issuecomment-3377416371
Please reload this pagehttps://github.com/python/mypy/pull/19466
relevant sectionhttps://typing.python.org/en/latest/spec/generics.html#variance-inference
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Oct 7, 2025 https://github.com/python/mypy/pull/19466#pullrequestreview-3310692569
View reviewed changes https://github.com/python/mypy/pull/19466/files/70bef57d6a20b9f45b56d53c105c843f65a220b5
sterliakovhttps://github.com/sterliakov
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/python/mypy/pull/19466#pullrequestreview-3310692569
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 7, 2025https://github.com/python/mypy/pull/19466#issuecomment-3377444892
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 10, 2025 https://github.com/python/mypy/pull/19466#ref-issue-3474768227
1.19 Release Planning #19964 https://github.com/python/mypy/issues/19964
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/01e8651367de055d6a58b11ee2d88de0baae8e83
01e8651https://github.com/python/mypy/pull/19466/commits/01e8651367de055d6a58b11ee2d88de0baae8e83
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Oct 15, 2025 https://github.com/python/mypy/pull/19466#pullrequestreview-3339887481
View reviewed changes https://github.com/python/mypy/pull/19466/files/01e8651367de055d6a58b11ee2d88de0baae8e83
test-data/unit/check-python312.testhttps://github.com/python/mypy/pull/19466/files/01e8651367de055d6a58b11ee2d88de0baae8e83#diff-e1d395ac821807aaa1c97a4d4bc96e0eb5d6f769bdd61ed48ba38d1eb9ee1635
ilevkivskyihttps://github.com/ilevkivskyi
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432203931
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/19466
randolf-scholzhttps://github.com/randolf-scholz
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432253364
Please reload this pagehttps://github.com/python/mypy/pull/19466
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#19439https://github.com/python/mypy/issues/19439
https://mypy-play.net/?mypy=latest&python=3.12&gist=122e95729e7b7573cdba5ab981a342e3https://mypy-play.net/?mypy=latest&python=3.12&gist=122e95729e7b7573cdba5ab981a342e3
https://mypy-play.net/?mypy=latest&python=3.12&gist=bf195658c63c961c3ac5a7539bb35291https://mypy-play.net/?mypy=latest&python=3.12&gist=bf195658c63c961c3ac5a7539bb35291
Please reload this pagehttps://github.com/python/mypy/pull/19466
randolf-scholzhttps://github.com/randolf-scholz
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432267722
Please reload this pagehttps://github.com/python/mypy/pull/19466
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
pyright playgroundhttps://pyright-play.net/?pyrightVersion=1.1.403&strict=true&code=MYGwhgzhAEDCD2A3A2gFQLoC4BQ0-QBMBTAM2gHMiAXACgiJBIEpoBaAPmlU2gDp-c%2BYmQB2RAO7IAyujoMSPBChkAaaGABO5HiACWEKtPQsOcJEZ79egvNlCQYUgK4AjGkuS6RVYznyFSaDFxOUY1TW1oPQNPb2M2TmcXP398AAcNL1oI5AAGdF4qeAB9FwBPKiIIGiYmG1SNaicNEWh6RiA
https://mypy-play.net/?mypy=latest&python=3.12&gist=f60a4694098406077af0b8627fc78557https://mypy-play.net/?mypy=latest&python=3.12&gist=f60a4694098406077af0b8627fc78557
Please reload this pagehttps://github.com/python/mypy/pull/19466
ilevkivskyihttps://github.com/ilevkivskyi
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432786477
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#18334https://github.com/python/mypy/issues/18334
Please reload this pagehttps://github.com/python/mypy/pull/19466
sterliakovhttps://github.com/sterliakov
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432846757
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/19466
ilevkivskyihttps://github.com/ilevkivskyi
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432883370
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@sterliakovhttps://github.com/sterliakov
Please reload this pagehttps://github.com/python/mypy/pull/19466
randolf-scholzhttps://github.com/randolf-scholz
Oct 15, 2025https://github.com/python/mypy/pull/19466#discussion_r2432889719
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
in discoursehttps://discuss.python.org/t/proposal-optional-explicit-covariance-contravariance-for-pep-695/35204
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/d41749b5e4a83112349123a35c9efaf4b980fb72
d41749bhttps://github.com/python/mypy/pull/19466/commits/d41749b5e4a83112349123a35c9efaf4b980fb72
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Dec 16, 2025 https://github.com/python/mypy/pull/19466#ref-issue-3735354486
Check #19466 sterliakov/mypy-issues#231 https://github.com/sterliakov/mypy-issues/issues/231
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Dec 16, 2025https://github.com/python/mypy/pull/19466#issuecomment-3661469403
@sterliakovhttps://github.com/sterliakov
#18920https://github.com/python/mypy/issues/18920
@sterliakovhttps://github.com/sterliakov
#18920 (comment)https://github.com/python/mypy/issues/18920#issuecomment-2845566355
as a parameterhttps://typing.python.org/en/latest/spec/generics.html#use-in-parameter-types
mutable attributehttps://typing.python.org/en/latest/spec/generics.html#use-in-generic-classes
@jorenhamhttps://github.com/jorenham
#18334 (comment)https://github.com/python/mypy/issues/18334#issuecomment-3413677910
[PEP 695] Incorrect Variance Computation with Polymorphic Constructor. #19439https://github.com/python/mypy/issues/19439
python/typinghttps://github.com/python/typing
Please reload this pagehttps://github.com/python/mypy/pull/19466
randolf-scholzhttps://github.com/randolf-scholz
February 2, 2026 21:06https://github.com/python/mypy/pull/19466#commits-pushed-28f2bbe
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/28f2bbebf24acfaa7abc76cbe7dcc65546c3c94d
28f2bbehttps://github.com/python/mypy/pull/19466/commits/28f2bbebf24acfaa7abc76cbe7dcc65546c3c94d
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/518fb98982bd1044c6fc83cdc85df3bcf7b79332
518fb98https://github.com/python/mypy/pull/19466/commits/518fb98982bd1044c6fc83cdc85df3bcf7b79332
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
randolf-scholzhttps://github.com/randolf-scholz
March 9, 2026 20:07https://github.com/python/mypy/pull/19466#commits-pushed-70bef57
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/70bef57d6a20b9f45b56d53c105c843f65a220b5
70bef57https://github.com/python/mypy/pull/19466/commits/70bef57d6a20b9f45b56d53c105c843f65a220b5
https://github.com/randolf-scholz
Add test case for PEP 695 Self return type with Union in check-python…https://github.com/python/mypy/pull/19466/commits/9bdec3c3f6bde77573a44f1f594177526d85dfaf
9bdec3chttps://github.com/python/mypy/pull/19466/commits/9bdec3c3f6bde77573a44f1f594177526d85dfaf
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Mar 9, 2026https://github.com/python/mypy/pull/19466#issuecomment-4026123292
Please reload this pagehttps://github.com/python/mypy/pull/19466
@ilevkivskyihttps://github.com/ilevkivskyi
#20997https://github.com/python/mypy/issues/20997
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Mar 9, 2026 https://github.com/python/mypy/pull/19466#ref-issue-3887960566
1.20 and 2.0 Release Planning #20726 https://github.com/python/mypy/issues/20726
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
Remove Protocol inheritance from FloatScalar class in check-python312…https://github.com/python/mypy/pull/19466/commits/d2d84915527ce0cec9f7072d59971aeaa7634fdd
d2d8491https://github.com/python/mypy/pull/19466/commits/d2d84915527ce0cec9f7072d59971aeaa7634fdd
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/b38ac0f0315d36b997b7991cbc87d884dd997896
b38ac0fhttps://github.com/python/mypy/pull/19466/commits/b38ac0f0315d36b997b7991cbc87d884dd997896
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 25, 2026 https://github.com/python/mypy/pull/19466#ref-issue-4328156339
Check #19466 sterliakov/mypy-issues#292 https://github.com/sterliakov/mypy-issues/issues/292
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19466
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Apr 25, 2026 https://github.com/python/mypy/pull/19466#ref-issue-3849223623
Generic method in generic class impacting type signature of unrelated method #20644 https://github.com/python/mypy/issues/20644
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
May 10, 2026 https://github.com/python/mypy/pull/19466#ref-issue-4415979804
[Conformance/Spec] Type Checker Divergence in Variance Inference python/typing#2281 https://github.com/python/typing/issues/2281
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
May 26, 2026 https://github.com/python/mypy/pull/19466#ref-issue-4522630672
Variance infernence with bound self argument zubanls/zuban#440 https://github.com/zubanls/zuban/issues/440
https://github.com/randolf-scholz
Merge branch 'master' into fix_variance_polymorphic_constructorhttps://github.com/python/mypy/pull/19466/commits/4192681fd2f805da0db58947e73d2010f08951fd
4192681https://github.com/python/mypy/pull/19466/commits/4192681fd2f805da0db58947e73d2010f08951fd
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 4, 2026https://github.com/python/mypy/pull/19466#issuecomment-6630001765
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/OBOneProtocol
OBOneProtocolhttps://github.com/OBOneProtocol
Nov 11, 2026 https://github.com/python/mypy/pull/19466#ref-pullrequest-6321101464
Treat writable callable attributes as invariant in PEP 695 variance inference #22438 https://github.com/python/mypy/pull/22438
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%2F19466
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/19466/files/01e8651367de055d6a58b11ee2d88de0baae8e83
https://github.com/sterliakov
sterliakov https://github.com/sterliakov
https://github.com/python/mypy/pull/19466/files/01e8651367de055d6a58b11ee2d88de0baae8e83
Please reload this pagehttps://github.com/python/mypy/pull/19466
[PEP 695] Incorrect Variance Computation with Self | other return type https://github.com/python/mypy/issues/20997
Generic method in generic class impacting type signature of unrelated method https://github.com/python/mypy/issues/20644
[PEP 695] Incorrect Variance Computation with Polymorphic Constructor. https://github.com/python/mypy/issues/19439
Self not accepted when used with a dataclass https://github.com/python/mypy/issues/18920
generic is incorrectly inferred as invariant if class uses Self type on an attribute https://github.com/python/mypy/issues/18334
Please reload this pagehttps://github.com/python/mypy/pull/19466
https://github.com/randolf-scholz
https://github.com/sterliakov
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.