René's URL Explorer Experiment


Title: bpo-44806: Fix __init__ in subclasses of protocols by serhiy-storchaka · Pull Request #27545 · python/cpython · GitHub

Open Graph Title: bpo-44806: Fix __init__ in subclasses of protocols by serhiy-storchaka · Pull Request #27545 · python/cpython

X Title: bpo-44806: Fix __init__ in subclasses of protocols by serhiy-storchaka · Pull Request #27545 · python/cpython

Description: Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. https://bugs.python.org/issue44806

Open Graph Description: Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. https://bugs.python.org/issue44806

X Description: Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. https://bugs.python.org/issue44806

Opengraph URL: https://github.com/python/cpython/pull/27545

X: @github

direct link

Domain: github.com

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:fcd81e9e-ea6d-8a14-a3b5-c2dccc890dcb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE352:301154:C8126:11B5F2:6969FA77
html-safe-nonce0f989fa1dfde46c5235bfa3df731e0d92bb41ce53094d5a5ee28a6d6b4eb7072
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzUyOjMwMTE1NDpDODEyNjoxMUI1RjI6Njk2OUZBNzciLCJ2aXNpdG9yX2lkIjoiNTkwMTg3MTgxNDgzOTc2MTUyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac45b2d6476391544093c559ab485384fe4a2ed27c36764d2763354665999a3849
hovercard-subject-tagpull_request:701389252
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/cpython/27545/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d1c7dbaf622f19ffe8393e1cf7caefd0076341a7ff944ff3b676282f45fbb2fa/python/cpython/pull/27545
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d1c7dbaf622f19ffe8393e1cf7caefd0076341a7ff944ff3b676282f45fbb2fa/python/cpython/pull/27545
og:image:altNon-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. https://bugs.python.org/issue44806
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/27545#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27545
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27545
Sign up https://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%2Fcpython
Reloadhttps://github.com/python/cpython/pull/27545
Reloadhttps://github.com/python/cpython/pull/27545
Reloadhttps://github.com/python/cpython/pull/27545
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/27545
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/27545
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/27545#issue-comment-box
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:protocol-subclass-inithttps://github.com/serhiy-storchaka/cpython/tree/protocol-subclass-init
bpo-44806: Fix __init__ in subclasses of protocols https://github.com/python/cpython/pull/27545#top
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:protocol-subclass-inithttps://github.com/serhiy-storchaka/cpython/tree/protocol-subclass-init
Conversation 3 https://github.com/python/cpython/pull/27545
Commits 1 https://github.com/python/cpython/pull/27545/commits
Checks 0 https://github.com/python/cpython/pull/27545/checks
Files changed https://github.com/python/cpython/pull/27545/files
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 2, 2021https://github.com/python/cpython/pull/27545#issue-958055205
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://bugs.python.org/issue44806https://bugs.python.org/issue44806
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://github.com/serhiy-storchaka
bpo-44806: Fix __init__ in subclasses of protocolshttps://github.com/python/cpython/pull/27545/commits/d2d3a318022c1e1866ba262deada90dd565a2bbe
d2d3a31https://github.com/python/cpython/pull/27545/commits/d2d3a318022c1e1866ba262deada90dd565a2bbe
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
gvanrossumhttps://github.com/gvanrossum
code ownerhttps://github.com/python/cpython/blob/414dcb13aaa4fd42f264fdee47782dede5c83d6c/.github/CODEOWNERS#L131
August 2, 2021 11:39https://github.com/python/cpython/pull/27545#event-5098520158
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5098520312
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5098520327
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5098521244
https://github.com/ambv
ambvhttps://github.com/ambv
Aug 2, 2021 https://github.com/python/cpython/pull/27545#ref-pullrequest-957953887
bpo-44806: Fix issue with typing.Protocol __init__ method generation #27541 https://github.com/python/cpython/pull/27541
https://github.com/ambv
ambvhttps://github.com/ambv
043cd60https://github.com/python/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5100069523
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Aug 2, 2021https://github.com/python/cpython/pull/27545#issuecomment-891159167
@serhiy-storchakahttps://github.com/serhiy-storchaka
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5100069705
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 2, 2021https://github.com/python/cpython/pull/27545#issuecomment-891159282
GH-27558https://github.com/python/cpython/pull/27558
3.10 branchhttps://github.com/python/cpython/tree/3.10
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5100070380
miss-islingtonhttps://github.com/miss-islington
Aug 2, 2021 https://github.com/python/cpython/pull/27545#ref-commit-f83cedb
https://github.com/serhiy-storchaka
https://github.com/miss-islington
bpo-44806: Fix __init__ in subclasses of protocols (https://github.com/miss-islington/cpython/commit/f83cedbbd8f07bac39c129f0e570aa626774ce72
pythonGH-27545https://github.com/python/cpython/pull/27545
)https://github.com/miss-islington/cpython/commit/f83cedbbd8f07bac39c129f0e570aa626774ce72
f83cedbhttps://github.com/miss-islington/cpython/commit/f83cedbbd8f07bac39c129f0e570aa626774ce72
043cd60https://github.com/miss-islington/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 2, 2021https://github.com/python/cpython/pull/27545#issuecomment-891159377
GH-27559https://github.com/python/cpython/pull/27559
3.9 branchhttps://github.com/python/cpython/tree/3.9
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
Aug 2, 2021https://github.com/python/cpython/pull/27545#event-5100070852
miss-islingtonhttps://github.com/miss-islington
Aug 2, 2021 https://github.com/python/cpython/pull/27545#ref-commit-d310dc0
https://github.com/serhiy-storchaka
https://github.com/miss-islington
bpo-44806: Fix __init__ in subclasses of protocols (https://github.com/miss-islington/cpython/commit/d310dc0fbd90a43efb3f3d867c3a38daf5c9a89d
pythonGH-27545https://github.com/python/cpython/pull/27545
)https://github.com/miss-islington/cpython/commit/d310dc0fbd90a43efb3f3d867c3a38daf5c9a89d
d310dc0https://github.com/miss-islington/cpython/commit/d310dc0fbd90a43efb3f3d867c3a38daf5c9a89d
043cd60https://github.com/miss-islington/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d
ambvhttps://github.com/ambv
Aug 2, 2021 https://github.com/python/cpython/pull/27545#ref-commit-0f6a773
https://github.com/miss-islington
https://github.com/serhiy-storchaka
bpo-44806https://bugs.python.org/issue?@action=redirect&bpo=44806
: Fix __init__ in subclasses of protocols (https://github.com/python/cpython/commit/0f6a7739df0055b5c6abe2180f1be97ea4da87b7
GH-27545https://github.com/python/cpython/pull/27545
) (https://github.com/python/cpython/commit/0f6a7739df0055b5c6abe2180f1be97ea4da87b7
GH-27559https://github.com/python/cpython/pull/27559
)https://github.com/python/cpython/commit/0f6a7739df0055b5c6abe2180f1be97ea4da87b7
0f6a773https://github.com/python/cpython/commit/0f6a7739df0055b5c6abe2180f1be97ea4da87b7
043cd60https://github.com/python/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d
miss-islingtonhttps://github.com/miss-islington
Aug 2, 2021 https://github.com/python/cpython/pull/27545#ref-commit-2cc19a5
https://github.com/miss-islington
https://github.com/serhiy-storchaka
bpo-44806https://bugs.python.org/issue?@action=redirect&bpo=44806
: Fix __init__ in subclasses of protocols (https://github.com/python/cpython/commit/2cc19a5463c804b2f39b94de896d55dcb57a364c
GH-27545https://github.com/python/cpython/pull/27545
)https://github.com/python/cpython/commit/2cc19a5463c804b2f39b94de896d55dcb57a364c
2cc19a5https://github.com/python/cpython/commit/2cc19a5463c804b2f39b94de896d55dcb57a364c
043cd60https://github.com/python/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d
https://github.com/uriyyo
uriyyohttps://github.com/uriyyo
Aug 2, 2021 https://github.com/python/cpython/pull/27545#ref-issue-454597531
Subclassing Protocol get different __init__ python/typing#644 https://github.com/python/typing/issues/644
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
August 3, 2021 12:51https://github.com/python/cpython/pull/27545#event-5104606872
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Aug 9, 2021 https://github.com/python/cpython/pull/27545#ref-issue-341132793
super().__init__ doesn't work in explicit protocol subclasses python/typing#572 https://github.com/python/typing/issues/572
https://github.com/shr1k
shr1khttps://github.com/shr1k
Sep 1, 2021 https://github.com/python/cpython/pull/27545#ref-issue-985283317
dbt==0.20.1 commands break on python 3.9.7 dbt-labs/dbt-core#3843 https://github.com/dbt-labs/dbt-core/issues/3843
https://github.com/julianfortune
julianfortunehttps://github.com/julianfortune
Sep 1, 2021 https://github.com/python/cpython/pull/27545#ref-issue-985678292
dataclasses that inherit from Protocol subclasses have wrong __init__ python/typing#883 https://github.com/python/typing/issues/883
bpo-45081: Fix __init__ method generation when inheriting from Protocol #28121 https://github.com/python/cpython/pull/28121
[3.10] bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121) #28131 https://github.com/python/cpython/pull/28131
https://github.com/s-weigand
s-weigandhttps://github.com/s-weigand
Nov 25, 2021 https://github.com/python/cpython/pull/27545#ref-pullrequest-1063807451
🩹 Remove inheriting from 'FileLoadableProtocol' glotaran/pyglotaran#912 https://github.com/glotaran/pyglotaran/pull/912
https://github.com/jaheba
jahebahttps://github.com/jaheba
Jul 6, 2022 https://github.com/python/cpython/pull/27545#ref-pullrequest-1296012053
Fix PandasDataset for Python 3.9 awslabs/gluonts#2141 https://github.com/awslabs/gluonts/pull/2141
https://github.com/JanEricNitschke
JanEricNitschkehttps://github.com/JanEricNitschke
Sep 11, 2025 https://github.com/python/cpython/pull/27545#ref-pullrequest-3407763959
Ensure init called in protocol subclasses python/typing_extensions#678 https://github.com/python/typing_extensions/pull/678
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%2Fcpython%2Fpull%2F27545
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Please reload this pagehttps://github.com/python/cpython/pull/27545
https://github.com/serhiy-storchaka
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/ambv
https://github.com/the-knights-who-say-ni
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.