René's URL Explorer Experiment


Title: fix: Generic definition by mantasu · Pull Request #14583 · python/typeshed · GitHub

Open Graph Title: fix: Generic definition by mantasu · Pull Request #14583 · python/typeshed

X Title: fix: Generic definition by mantasu · Pull Request #14583 · python/typeshed

Description: Collection of library stubs for Python, with static types - fix: Generic definition by mantasu · Pull Request #14583 · python/typeshed

Open Graph Description: Unless there is a specific reason to use _SpecialForm annotation, I'm proposing a slightly more refined way to define Generic: From Python 3.12, it is internal so we often fall back to the def...

X Description: Unless there is a specific reason to use _SpecialForm annotation, I'm proposing a slightly more refined way to define Generic: From Python 3.12, it is internal so we often fall back to the...

Opengraph URL: https://github.com/python/typeshed/pull/14583

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:b0098cd3-4441-af07-d746-32e1be0eadc7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id97B0:3A13A0:22054EF:2E25BEB:6B0025A3
html-safe-nonceaf9b4ab38ad119d40d0d7afbe55fcfc0b99353d60bdb610d5735ca493b1926d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0IwOjNBMTNBMDoyMjA1NEVGOjJFMjVCRUI6NkIwMDI1QTMiLCJ2aXNpdG9yX2lkIjoiNjg0MzM0NTcyMjkzOTU0OTA5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd578b0b20ca8c7e3bc54902439e668485b73ff48915baeeb176947cd7a092d18
hovercard-subject-tagpull_request:2750788903
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/typeshed/14583/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e5a39547bb4b73255200d7d32150af9d922e1709752b3cd1983c4c929f2309f4/python/typeshed/pull/14583
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e5a39547bb4b73255200d7d32150af9d922e1709752b3cd1983c4c929f2309f4/python/typeshed/pull/14583
og:image:altUnless there is a specific reason to use _SpecialForm annotation, I'm proposing a slightly more refined way to define Generic: From Python 3.12, it is internal so we often fall back to the def...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemantasu
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-cache
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/typeshed/pull/14583#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14583
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%2Ftypeshed%2Fpull%2F14583
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%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/14583
Reloadhttps://github.com/python/typeshed/pull/14583
Reloadhttps://github.com/python/typeshed/pull/14583
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/typeshed/tree/main
mantasu:fix/generic-definitionhttps://github.com/mantasu/typeshed/tree/fix/generic-definition
Conversationhttps://github.com/python/typeshed/pull/14583
Commits7 (7)https://github.com/python/typeshed/pull/14583/commits
Checkshttps://github.com/python/typeshed/pull/14583/checks
Files changedhttps://github.com/python/typeshed/pull/14583/files
fix: Generic definitionhttps://github.com/python/typeshed/pull/14583#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/typeshed/tree/main
mantasu:fix/generic-definitionhttps://github.com/mantasu/typeshed/tree/fix/generic-definition
https://github.com/mantasu
mantasuhttps://github.com/mantasu
Aug 16, 2025https://github.com/python/typeshed/pull/14583#issue-3327661360
internalhttps://github.com/python/cpython/blob/3663b2ad54c9e15775a605facf69da8f5ee8d335/Lib/typing.py#L40
prohibit subclassinghttps://github.com/python/cpython/blob/3663b2ad54c9e15775a605facf69da8f5ee8d335/Lib/typing.py#L1516
cpython spechttps://github.com/python/cpython/blob/3663b2ad54c9e15775a605facf69da8f5ee8d335/Objects/typevarobject.c#L2288
Please reload this pagehttps://github.com/python/typeshed/pull/14583
mantasuhttps://github.com/mantasu
August 16, 2025 22:00https://github.com/python/typeshed/pull/14583#commits-pushed-b0af550
https://github.com/mantasu
fix: Generic definitionhttps://github.com/python/typeshed/pull/14583/commits/b0af550bed3af4acdfc9c20d4fb6f56587e9844c
b0af550https://github.com/python/typeshed/pull/14583/commits/b0af550bed3af4acdfc9c20d4fb6f56587e9844c
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/typeshed/pull/14583/commits/b7a33421249520fedf687ce750370dba1d2d4389
b7a3342https://github.com/python/typeshed/pull/14583/commits/b7a33421249520fedf687ce750370dba1d2d4389
https://github.com/mantasu
pyright workaroundhttps://github.com/python/typeshed/pull/14583/commits/ea90b5e70fdac8d732f777668e881ba090967b45
ea90b5ehttps://github.com/python/typeshed/pull/14583/commits/ea90b5e70fdac8d732f777668e881ba090967b45
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/typeshed/pull/14583/commits/af8517f3edd071f245e6e008c07c47efc33227dd
af8517fhttps://github.com/python/typeshed/pull/14583/commits/af8517f3edd071f245e6e008c07c47efc33227dd
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14583
mantasuhttps://github.com/mantasu
August 16, 2025 23:03https://github.com/python/typeshed/pull/14583#commits-pushed-e466d52
https://github.com/mantasu
fix unused allowlisthttps://github.com/python/typeshed/pull/14583/commits/e466d52891e7e5a13901fcd50b791845fd2f2018
e466d52https://github.com/python/typeshed/pull/14583/commits/e466d52891e7e5a13901fcd50b791845fd2f2018
https://github.com/mantasu
fix type annotationhttps://github.com/python/typeshed/pull/14583/commits/d2058153e82b0b421d70837a6f4d700576145df9
d205815https://github.com/python/typeshed/pull/14583/commits/d2058153e82b0b421d70837a6f4d700576145df9
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14583
https://github.com/srittau
srittauhttps://github.com/srittau
Aug 18, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3195256160
@JelleZijlstrahttps://github.com/JelleZijlstra
@AlexWaygoodhttps://github.com/AlexWaygood
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 18, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3196946799
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/beartype/beartype/blob/0e31257efbb934c9a0160c54cd07497838ee4203/beartype/_util/hint/pep/proposal/pep484/pep484generic.py#L149https://github.com/beartype/beartype/blob/0e31257efbb934c9a0160c54cd07497838ee4203/beartype/_util/hint/pep/proposal/pep484/pep484generic.py#L149
https://github.com/beartype/beartype/blob/0e31257efbb934c9a0160c54cd07497838ee4203/beartype/_util/hint/pep/proposal/pep484/pep484generic.py#L177https://github.com/beartype/beartype/blob/0e31257efbb934c9a0160c54cd07497838ee4203/beartype/_util/hint/pep/proposal/pep484/pep484generic.py#L177
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Aug 18, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3196951872
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 18, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3197028820
astral-sh/ruff#19969https://github.com/astral-sh/ruff/pull/19969
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 18, 2025 https://github.com/python/typeshed/pull/14583#ref-pullrequest-3330829934
[ty] [testing impact of proposed typeshed change] astral-sh/ruff#19969 https://github.com/astral-sh/ruff/pull/19969
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Aug 18, 2025 https://github.com/python/typeshed/pull/14583#pullrequestreview-3128531035
View reviewed changes https://github.com/python/typeshed/pull/14583/files/d2058153e82b0b421d70837a6f4d700576145df9
stdlib/typing.pyihttps://github.com/python/typeshed/pull/14583/files/d2058153e82b0b421d70837a6f4d700576145df9#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
JelleZijlstrahttps://github.com/JelleZijlstra
Aug 18, 2025https://github.com/python/typeshed/pull/14583#discussion_r2282510504
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/14583
mantasuhttps://github.com/mantasu
Aug 18, 2025https://github.com/python/typeshed/pull/14583#discussion_r2282617340
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
complaining a lothttps://github.com/python/typeshed/pull/14583/commits/b7a33421249520fedf687ce750370dba1d2d4389
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Aug 18, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3197077743
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 18, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3197290340
does reporthttps://codspeed.io/astral-sh/ruff/branches/typeshed-experiment?runnerMode=Instrumentation
primerhttps://github.com/astral-sh/ruff/pull/19969#issuecomment-3197041399
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 19, 2025 https://github.com/python/typeshed/pull/14583#pullrequestreview-3133297856
View reviewed changes https://github.com/python/typeshed/pull/14583/files/d2058153e82b0b421d70837a6f4d700576145df9
stdlib/typing.pyihttps://github.com/python/typeshed/pull/14583/files/d2058153e82b0b421d70837a6f4d700576145df9#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/mantasu
https://github.com/AlexWaygood
Update stdlib/typing.pyihttps://github.com/python/typeshed/pull/14583/commits/419b9d198ca85608e4458dc402ea70806caec795
419b9d1https://github.com/python/typeshed/pull/14583/commits/419b9d198ca85608e4458dc402ea70806caec795
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 19, 2025https://github.com/python/typeshed/pull/14583#issuecomment-3202421558
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
28abff1https://github.com/python/typeshed/commit/28abff1eb3c477d6b5f85224f5e1301352779089
Aug 21, 2025https://github.com/python/typeshed/pull/14583#event-19267701275
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 21, 2025 https://github.com/python/typeshed/pull/14583#ref-pullrequest-3342903443
[ty] Sync vendored typeshed stubs astral-sh/ruff#20031 https://github.com/astral-sh/ruff/pull/20031
https://github.com/mantasu
mantasuhttps://github.com/mantasu
August 21, 2025 20:56https://github.com/python/typeshed/pull/14583#event-19274651534
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Aug 31, 2025 https://github.com/python/typeshed/pull/14583#ref-pullrequest-3370764499
Sync typeshed python/mypy#19772 https://github.com/python/mypy/pull/19772
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Nov 19, 2025 https://github.com/python/typeshed/pull/14583#ref-issue-3644214137
Slice is not subscriptable at runtime astral-sh/ty#1595 https://github.com/astral-sh/ty/issues/1595
typing: make Protocol definition reflect runtime #16386 https://github.com/python/typeshed/pull/16386
typing.Protocol is explicitly treated as not a type python/mypy#21940 https://github.com/python/mypy/issues/21940
Resolve bare Protocol and Generic references in type position python/mypy#22005 https://github.com/python/mypy/pull/22005
https://github.co/hiddenchars
https://github.com/python/typeshed/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%2Ftypeshed%2Fpull%2F14583
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/typeshed/pull/14583/files/d2058153e82b0b421d70837a6f4d700576145df9
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/typeshed/pull/14583/files/d2058153e82b0b421d70837a6f4d700576145df9
Please reload this pagehttps://github.com/python/typeshed/pull/14583
Please reload this pagehttps://github.com/python/typeshed/pull/14583
https://github.com/mantasu
https://github.com/srittau
https://github.com/AlexWaygood
https://github.com/JelleZijlstra
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.