| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b492882f-5865-1462-8c7f-7753f512269a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A5AE:1F3799:12CBB56:17CD625:6AFF9555 |
| html-safe-nonce | c5cb290a6dbae7157d3c344ec5c690c4c11e2b583fbbb5c779903955512b679a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUFFOjFGMzc5OToxMkNCQjU2OjE3Q0Q2MjU6NkFGRjk1NTUiLCJ2aXNpdG9yX2lkIjoiNTQ1MTIwMDI0Nzk1NzAwMTU1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8f9fae2fa78cc52b986a4fe566c2f87986ed4a56e31629c7e4fb137146226117 |
| hovercard-subject-tag | pull_request:5304551679 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/typing/pull/2389/files |
| twitter:image | https://avatars.githubusercontent.com/u/118923461?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/118923461?s=400&v=4 |
| og:image:alt | discussion: https://discuss.python.org/t/proposal-specialize-generic-subclass-from-inherited-init-s-self-annotation/109979
support in pyright: microsoft/pyright#11991
typing-council: python/typi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c75d045e8c84b51e2ac680086a6dd1eeaf2bc15b82137d22ee5106835d6256c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aa486b0389431f870c0adf9d4758aaff807c2d97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/typing/pull/2389/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F2389%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F2389%2Ffiles |
| 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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftyping |
| Reload | https://github.com/python/typing/pull/2389/files |
| Reload | https://github.com/python/typing/pull/2389/files |
| Reload | https://github.com/python/typing/pull/2389/files |
| python | https://github.com/python |
| typing | https://github.com/python/typing |
| Code | https://github.com/python/typing |
| Issues206 (206) | https://github.com/python/typing/issues |
| Pull requests27 (27) | https://github.com/python/typing/pulls |
| Discussions | https://github.com/python/typing/discussions |
| Actions | https://github.com/python/typing/actions |
| Security and quality | https://github.com/python/typing/security |
| Insights | https://github.com/python/typing/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose |
| crypt0lith | https://github.com/crypt0lith |
| python:main | https://github.com/python/typing/tree/main |
| crypt0lith:constructors-inherited-init-self-annotation | https://github.com/crypt0lith/typing/tree/constructors-inherited-init-self-annotation |
|
Conversation
4
| https://github.com/python/typing/pull/2389 |
|
Commits
2
| https://github.com/python/typing/pull/2389/commits |
|
Checks
0
| https://github.com/python/typing/pull/2389/checks |
|
Files changed
| https://github.com/python/typing/pull/2389/files |
| Please reload this page | https://github.com/python/typing/pull/2389/files |
|
specialize generic subclass from inherited __init__ self annotation
| https://github.com/python/typing/pull/2389/files#top |
|
Show all changes
2 commits
| https://github.com/python/typing/pull/2389/files |
|
8127c5e
specialize generic subclass from inherited __init__ self annotation
crypt0lith Nov 13, 2026
| https://github.com/python/typing/pull/2389/commits/8127c5e508c9b42089061f606351400476fba7a8 |
|
b6f4cb5
bind after __new__, return subclass from converted constructor
crypt0lith Nov 14, 2026
| https://github.com/python/typing/pull/2389/commits/b6f4cb5b92ad591017ad11a3e31632d38e23acf7 |
|
Clear filters
| https://github.com/python/typing/pull/2389/files |
| Please reload this page | https://github.com/python/typing/pull/2389/files |
| Please reload this page | https://github.com/python/typing/pull/2389/files |
|
constructors_call_init.toml
| https://github.com/python/typing/pull/2389/files#diff-ef00b49bf1d70905c1d993a3e641d2e30786ec0a8a089ba201794e849eee43b3 |
|
constructors_callable.toml
| https://github.com/python/typing/pull/2389/files#diff-07330eda679ea5896ea20e72377b3008cb65777e2a66b40f37a2118749b9c35d |
|
constructors_call_init.toml
| https://github.com/python/typing/pull/2389/files#diff-58928b95240eb9a9d7f5f523d7befbe9e4c69ab3d977d380b5b7c1be597a672f |
|
constructors_callable.toml
| https://github.com/python/typing/pull/2389/files#diff-991e55fd7a0b65aa0bcc53e28d886b372ae14d931b9fcf1e5ce1bba5245465d3 |
|
constructors_call_init.toml
| https://github.com/python/typing/pull/2389/files#diff-1945e0a2a3c15ea44a1491a4ab871131ae089d642be236b4bbff1eb65a9a79d7 |
|
constructors_callable.toml
| https://github.com/python/typing/pull/2389/files#diff-1eb0d03f85a25cd4682cafc0e160bec4a1522c3af2c100254d06d5b74bb627f7 |
|
constructors_call_init.toml
| https://github.com/python/typing/pull/2389/files#diff-6f04289dd80d866e113637d689d3c10e1680347df29f3b822528a3ff687704bb |
|
constructors_callable.toml
| https://github.com/python/typing/pull/2389/files#diff-299adb17fdf9035fa3666af43a1418a1459f792373aad0d2b36bc1391d420a48 |
|
results.html
| https://github.com/python/typing/pull/2389/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381 |
|
constructors_call_init.toml
| https://github.com/python/typing/pull/2389/files#diff-5a1b8299c189511e26874e33582e5fd6fd5151ec75f33b48c29a4c1e1b0fc1e0 |
|
constructors_callable.toml
| https://github.com/python/typing/pull/2389/files#diff-7aa90bc5638d698fc04ef9ef7c92f5d4a75c30245b628fb2314e44094b3cb147 |
|
constructors_call_init.toml
| https://github.com/python/typing/pull/2389/files#diff-e19fa4860a5ec0b0798af351aa8dd636fd768e0ab2c7009090df32848d3f6183 |
|
constructors_callable.toml
| https://github.com/python/typing/pull/2389/files#diff-cd9180e9bf3b2a04d80da9d80fd336332fcda46015e508101ffa906a97e615ea |
|
constructors_call_init.py
| https://github.com/python/typing/pull/2389/files#diff-95cf36fb9c57b3d4ec479c7645f27910c02788844cfd2efaf3260aeb0db774a2 |
|
constructors_callable.py
| https://github.com/python/typing/pull/2389/files#diff-c565d1a72045d21e40c0318151d39ae7dba1fc1196b438bea2ef2d8eed5c533f |
|
constructors.rst
| https://github.com/python/typing/pull/2389/files#diff-9296ae547c5628385f97699507a92ad80e9836a16f36daac134814d42c8a728c |
| conformance/results/mypy/constructors_call_init.toml | https://github.com/python/typing/pull/2389/files#diff-ef00b49bf1d70905c1d993a3e641d2e30786ec0a8a089ba201794e849eee43b3 |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/mypy/constructors_call_init.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
|
| https://github.com/python/typing/pull/2389/files#diff-ef00b49bf1d70905c1d993a3e641d2e30786ec0a8a089ba201794e849eee43b3 |
| conformance/results/mypy/constructors_callable.toml | https://github.com/python/typing/pull/2389/files#diff-07330eda679ea5896ea20e72377b3008cb65777e2a66b40f37a2118749b9c35d |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/mypy/constructors_callable.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
|
| https://github.com/python/typing/pull/2389/files#diff-07330eda679ea5896ea20e72377b3008cb65777e2a66b40f37a2118749b9c35d |
|
| https://github.com/python/typing/pull/2389/files#diff-07330eda679ea5896ea20e72377b3008cb65777e2a66b40f37a2118749b9c35d |
|
| https://github.com/python/typing/pull/2389/files#diff-07330eda679ea5896ea20e72377b3008cb65777e2a66b40f37a2118749b9c35d |
|
| https://github.com/python/typing/pull/2389/files#diff-07330eda679ea5896ea20e72377b3008cb65777e2a66b40f37a2118749b9c35d |
| conformance/results/pycroscope/constructors_call_init.toml | https://github.com/python/typing/pull/2389/files#diff-58928b95240eb9a9d7f5f523d7befbe9e4c69ab3d977d380b5b7c1be597a672f |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/pycroscope/constructors_call_init.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
| conformance/results/pycroscope/constructors_callable.toml | https://github.com/python/typing/pull/2389/files#diff-991e55fd7a0b65aa0bcc53e28d886b372ae14d931b9fcf1e5ce1bba5245465d3 |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/pycroscope/constructors_callable.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
|
| https://github.com/python/typing/pull/2389/files#diff-991e55fd7a0b65aa0bcc53e28d886b372ae14d931b9fcf1e5ce1bba5245465d3 |
| conformance/results/pyrefly/constructors_call_init.toml | https://github.com/python/typing/pull/2389/files#diff-1945e0a2a3c15ea44a1491a4ab871131ae089d642be236b4bbff1eb65a9a79d7 |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/pyrefly/constructors_call_init.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
| conformance/results/pyrefly/constructors_callable.toml | https://github.com/python/typing/pull/2389/files#diff-1eb0d03f85a25cd4682cafc0e160bec4a1522c3af2c100254d06d5b74bb627f7 |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/pyrefly/constructors_callable.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
|
| https://github.com/python/typing/pull/2389/files#diff-1eb0d03f85a25cd4682cafc0e160bec4a1522c3af2c100254d06d5b74bb627f7 |
| conformance/results/pyright/constructors_call_init.toml | https://github.com/python/typing/pull/2389/files#diff-6f04289dd80d866e113637d689d3c10e1680347df29f3b822528a3ff687704bb |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/pyright/constructors_call_init.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
| conformance/results/pyright/constructors_callable.toml | https://github.com/python/typing/pull/2389/files#diff-299adb17fdf9035fa3666af43a1418a1459f792373aad0d2b36bc1391d420a48 |
|
View file
| https://github.com/python/typing/blob/b6f4cb5b92ad591017ad11a3e31632d38e23acf7/conformance/results/pyright/constructors_callable.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/2389/{{ revealButtonHref }} |
|
| https://github.com/python/typing/pull/2389/files#diff-299adb17fdf9035fa3666af43a1418a1459f792373aad0d2b36bc1391d420a48 |
|
| https://github.com/python/typing/pull/2389/files#diff-299adb17fdf9035fa3666af43a1418a1459f792373aad0d2b36bc1391d420a48 |
| Please reload this page | https://github.com/python/typing/pull/2389/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |