René's URL Explorer Experiment


Title: Document generic parameters of generic classes · Issue #150319 · python/cpython · GitHub

Open Graph Title: Document generic parameters of generic classes · Issue #150319 · python/cpython

X Title: Document generic parameters of generic classes · Issue #150319 · python/cpython

Description: Documentation PEP-585 introduced native generic support several years ago by adding the __class_getitem__ method. But all docstrings for C-implemented __class_getitem__ methods are just "See PEP 585", and the online documentation has not...

Open Graph Description: Documentation PEP-585 introduced native generic support several years ago by adding the __class_getitem__ method. But all docstrings for C-implemented __class_getitem__ methods are just "See PEP 58...

X Description: Documentation PEP-585 introduced native generic support several years ago by adding the __class_getitem__ method. But all docstrings for C-implemented __class_getitem__ methods are just "See P...

Opengraph URL: https://github.com/python/cpython/issues/150319

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document generic parameters of generic classes","articleBody":"### Documentation\n\nPEP-585 introduced native generic support several years ago by adding the `__class_getitem__` method. But all docstrings for C-implemented `__class_getitem__` methods are just \"See PEP 585\", and the online documentation has nothing to say about this.\n\nWhen a class is generic, we should tell users what it is generic over, so that those who wish to use types can understand what type parameters to use.\n\nIn the online documentation, any generic class should have a note like \"This class is generic [link to docs about generics] and takes N type parameters, representing respectively ...\".\n\nThe docstring for the `__class_getitem__` method should similarly outline what the type parameters are.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-150325\n* gh-150808\n* gh-150813\n* gh-150814\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2026-05-23T16:53:30Z","url":"https://github.com/python/cpython/issues/150319"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:23e3bf6e-47ba-0896-caf5-7b524abadab8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id822A:251AC0:D6FD84:11DD4C6:6B00518C
html-safe-noncea19f528742a8d09c95f81f5ba97aac043492d247a459c21e811c4b6284550179
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjJBOjI1MUFDMDpENkZEODQ6MTFERDRDNjo2QjAwNTE4QyIsInZpc2l0b3JfaWQiOiI3ODczMDc0MDczOTgxNjI4MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac53e0bda58822ca27a71e15f04423d32378c5f05a67e5f59f607b469e53d85588
hovercard-subject-tagissue:4508970403
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/150319/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b893ba37a734c6fde2fae13ee0129f1dad9ec3abec70da4cf19b7f0942b558da/python/cpython/issues/150319
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b893ba37a734c6fde2fae13ee0129f1dad9ec3abec70da4cf19b7f0942b558da/python/cpython/issues/150319
og:image:altDocumentation PEP-585 introduced native generic support several years ago by adding the __class_getitem__ method. But all docstrings for C-implemented __class_getitem__ methods are just "See PEP 58...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
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
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/150319#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F150319
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%2Fcpython%2Fissues%2F150319
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/150319
Reloadhttps://github.com/python/cpython/issues/150319
Reloadhttps://github.com/python/cpython/issues/150319
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/150319
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/150319
Document generic parameters of generic classeshttps://github.com/python/cpython/issues/150319#top
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
topic-typinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-typing%22
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on May 23, 2026https://github.com/python/cpython/issues/150319#issue-4508970403
PEP-585https://peps.python.org/585
gh-150319: Replace all documentation which says "See PEP 585" #150325https://github.com/python/cpython/pull/150325
[3.15] gh-150319: Replace all documentation which says "See PEP 585" (GH-150325) #150808https://github.com/python/cpython/pull/150808
[3.14] gh-150319: Replace all documentation which says "See PEP 585" (#150325) #150813https://github.com/python/cpython/pull/150813
[3.13] gh-150319: Replace all documentation which says "See PEP 585" (#150325) #150814https://github.com/python/cpython/pull/150814
JelleZijlstrahttps://github.com/JelleZijlstra
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
topic-typinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-typing%22
on May 23, 2026https://github.com/python/cpython/issues/150319#event-25886388464
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on May 23, 2026https://github.com/python/cpython/issues/150319#event-25886390824
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on May 23, 2026https://github.com/python/cpython/issues/150319
https://github.com/sirosen
sirosenhttps://github.com/sirosen
on May 23, 2026https://github.com/python/cpython/issues/150319#issuecomment-4526113931
https://github.com/sirosen
sirosenhttps://github.com/sirosen
on May 23, 2026https://github.com/python/cpython/issues/150319#issuecomment-4526161392
https://github.com/sirosen
sirosenhttps://github.com/sirosen
on May 23, 2026https://github.com/python/cpython/issues/150319#issuecomment-4526257120
Clarify what memoryview is generic in #149488https://github.com/python/cpython/issues/149488
Links to PEP 585 in Generic types #140121https://github.com/python/cpython/issues/140121
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on May 23, 2026https://github.com/python/cpython/issues/150319#issuecomment-4526507789
AlexWaygoodhttps://github.com/AlexWaygood
on Jun 2, 2026https://github.com/python/cpython/issues/150319#event-26255944337
gh-150319: Replace all documentation which says "See PEP 585" (#150325)https://github.com/python/cpython/commit/50fe49c879af352914da3baa40c7fd1fb170028c
gh-150319https://github.com/python/cpython/issues/150319
#150325https://github.com/python/cpython/pull/150325
50fe49chttps://github.com/python/cpython/commit/50fe49c879af352914da3baa40c7fd1fb170028c
[3.15] gh-150319: Replace all documentation which says "See PEP 585" (G…https://github.com/python/cpython/commit/1c2daa08fb8b802e6057378d78e8e2b38b14abdb
gh-150319https://github.com/python/cpython/issues/150319
G…https://github.com/python/cpython/pull/150325
1c2daa0https://github.com/python/cpython/commit/1c2daa08fb8b802e6057378d78e8e2b38b14abdb
pythongh-150319: Replace all documentation which says "See PEP 585" (p…https://github.com/AlexWaygood/cpython/commit/a9485c395d3dbe1c225ad4dee24ed2263177da6c
pythongh-150319https://github.com/python/cpython/issues/150319
p…https://github.com/python/cpython/pull/150325
a9485c3https://github.com/AlexWaygood/cpython/commit/a9485c395d3dbe1c225ad4dee24ed2263177da6c
[3.14] gh-150319: Replace all documentation which says "See PEP 585" (#…https://github.com/python/cpython/commit/7756f59892df07f703725a0a9a17fdef918b97c5
gh-150319https://github.com/python/cpython/issues/150319
#…https://github.com/python/cpython/pull/150325
7756f59https://github.com/python/cpython/commit/7756f59892df07f703725a0a9a17fdef918b97c5
[3.13] gh-150319: Replace all documentation which says "See PEP 585" (#…https://github.com/python/cpython/commit/7c5734c791de7d9f3f770d6a8a8a0308b658af33
gh-150319https://github.com/python/cpython/issues/150319
#…https://github.com/python/cpython/pull/150325
7c5734chttps://github.com/python/cpython/commit/7c5734c791de7d9f3f770d6a8a8a0308b658af33
https://github.com/hugovk
hugovkhttps://github.com/hugovk
on Jun 4, 2026https://github.com/python/cpython/issues/150319#issuecomment-4622991018
hugovkhttps://github.com/hugovk
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 4, 2026https://github.com/python/cpython/issues/150319#event-26341150353
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/150319
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/150319
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
topic-typinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-typing%22
docs issueshttps://github.com/orgs/python/projects/52
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.