René's URL Explorer Experiment


Title: Self being a typing._SpecialForm prevents a case from PEP 673 · Issue #26 · python/typing_extensions · GitHub

Open Graph Title: Self being a typing._SpecialForm prevents a case from PEP 673 · Issue #26 · python/typing_extensions

X Title: Self being a typing._SpecialForm prevents a case from PEP 673 · Issue #26 · python/typing_extensions

Description: Among the valid locations for Self in PEP 673 we find: TupleSelf = Tuple[Self, Self] class Alias: def return_tuple(self) -> TupleSelf: return (self, self) But typing._type_check regards typing._SpecialForm instances invalid type argument...

Open Graph Description: Among the valid locations for Self in PEP 673 we find: TupleSelf = Tuple[Self, Self] class Alias: def return_tuple(self) -> TupleSelf: return (self, self) But typing._type_check regards typing._Spe...

X Description: Among the valid locations for Self in PEP 673 we find: TupleSelf = Tuple[Self, Self] class Alias: def return_tuple(self) -> TupleSelf: return (self, self) But typing._type_check regards typing._...

Opengraph URL: https://github.com/python/typing_extensions/issues/26

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Self being a typing._SpecialForm prevents a case from PEP 673","articleBody":"Among the [valid locations for Self](https://www.python.org/dev/peps/pep-0673/#valid-locations-for-self) in PEP 673 we find:\r\n```python\r\nTupleSelf = Tuple[Self, Self]\r\nclass Alias:\r\n    def return_tuple(self) -> TupleSelf:\r\n        return (self, self)\r\n```\r\n\r\nBut `typing._type_check` regards `typing._SpecialForm` instances invalid type arguments\r\nhttps://github.com/python/cpython/blob/e0f8a3e9b96bbc2597f61be96993ef0c768a19fe/Lib/typing.py#L179\r\n\r\nSo this use will result in a\r\n\r\n    TypeError: Plain typing_extensions.Self is not valid as type argument\r\n\r\nThis also affects uses in linked lists and recursive dataclasses lke \r\n```python\r\n@dataclasses.dataclass\r\nclass MenuItem:\r\n    url: str\r\n    title: str\r\n    description: str = \"\"\r\n    items: typing.List[typing_extensions.Self] = dataclasses.field(default_factory=list)\r\n```","author":{"url":"https://github.com/CharString","@type":"Person","name":"CharString"},"datePublished":"2021-11-25T19:10:17Z","url":"https://github.com/python/typing_extensions/issues/26"}

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:ee6631c7-add3-e41a-d81e-7a3332a11d15
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB83E:609A0:27CC86F:33B2795:6AFFF7B6
html-safe-nonce19ef923e673f228f3be7ebab0af38d6c58edd18cb09183be2d372db74de755b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODNFOjYwOUEwOjI3Q0M4NkY6MzNCMjc5NTo2QUZGRjdCNiIsInZpc2l0b3JfaWQiOiI4MzEwNjQyMTA5MDEwOTMzNjg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6a9b89bb9aef860797930b57b5100c202096b5049d34016352e930da1dfe1601
hovercard-subject-tagissue:1241867178
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/typing_extensions/26/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c69ed8677716d53cd5679a958f50047feb70df23f9f754653367b5e960f082dd/python/typing_extensions/issues/26
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c69ed8677716d53cd5679a958f50047feb70df23f9f754653367b5e960f082dd/python/typing_extensions/issues/26
og:image:altAmong the valid locations for Self in PEP 673 we find: TupleSelf = Tuple[Self, Self] class Alias: def return_tuple(self) -> TupleSelf: return (self, self) But typing._type_check regards typing._Spe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCharString
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/python/typing_extensions git https://github.com/python/typing_extensions.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id494077289
octolytics-dimension-repository_nwopython/typing_extensions
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id494077289
octolytics-dimension-repository_network_root_nwopython/typing_extensions
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typing_extensions/issues/26#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping_extensions%2Fissues%2F26
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%2Ftyping_extensions%2Fissues%2F26
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%2Ftyping_extensions
Reloadhttps://github.com/python/typing_extensions/issues/26
Reloadhttps://github.com/python/typing_extensions/issues/26
Reloadhttps://github.com/python/typing_extensions/issues/26
pythonhttps://github.com/python
typing_extensionshttps://github.com/python/typing_extensions
Codehttps://github.com/python/typing_extensions
Issues13 (13)https://github.com/python/typing_extensions/issues
Pull requests5 (5)https://github.com/python/typing_extensions/pulls
Actionshttps://github.com/python/typing_extensions/actions
Projectshttps://github.com/python/typing_extensions/projects
Security and qualityhttps://github.com/python/typing_extensions/security
Insightshttps://github.com/python/typing_extensions/insights
https://github.com/python/typing_extensions
New issuehttps://github.com/login?return_to=https://github.com/python/typing_extensions/issues/26
New issuehttps://github.com/login?return_to=https://github.com/python/typing_extensions/issues/26
Self being a typing._SpecialForm prevents a case from PEP 673https://github.com/python/typing_extensions/issues/26#top
topic: typing-extensionshttps://github.com/python/typing_extensions/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing-extensions%22
https://github.com/CharString
CharStringhttps://github.com/CharString
on Nov 25, 2021https://github.com/python/typing_extensions/issues/26#issue-1241867178
valid locations for Selfhttps://www.python.org/dev/peps/pep-0673/#valid-locations-for-self
https://github.com/python/cpython/blob/e0f8a3e9b96bbc2597f61be96993ef0c768a19fe/Lib/typing.py#L179https://github.com/python/cpython/blob/e0f8a3e9b96bbc2597f61be96993ef0c768a19fe/Lib/typing.py#L179
CharStringhttps://github.com/CharString
topic: typing-extensionshttps://github.com/python/typing_extensions/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing-extensions%22
on Nov 25, 2021https://github.com/python/typing_extensions/issues/26#event-6643014919
https://github.com/Gobot1234
Gobot1234https://github.com/Gobot1234
on Nov 25, 2021https://github.com/python/typing_extensions/issues/26#issuecomment-1131767943
https://github.com/python/cpython/blob/e0f8a3e9b96bbc2597f61be96993ef0c768a19fe/Lib/typing.py#L176https://github.com/python/cpython/blob/e0f8a3e9b96bbc2597f61be96993ef0c768a19fe/Lib/typing.py#L176
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 25, 2021https://github.com/python/typing_extensions/issues/26#issuecomment-1131767960
https://github.com/CharString
CharStringhttps://github.com/CharString
on Nov 26, 2021https://github.com/python/typing_extensions/issues/26#issuecomment-1131767972
@Gobot1234https://github.com/Gobot1234
wondered if I were doing something wronghttps://stackoverflow.com/q/70083371/383793
@JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 26, 2021https://github.com/python/typing_extensions/issues/26#issuecomment-1131767983
CharStringhttps://github.com/CharString
on Nov 26, 2021https://github.com/python/typing_extensions/issues/26#event-6643014995
Vendor typing._SpecialForm to fool typing._type_checkhttps://github.com/CharString/typing/commit/e07c76782340d9f3411539d69a3564b22383ec5e
e07c767https://github.com/CharString/typing/commit/e07c76782340d9f3411539d69a3564b22383ec5e
https://github.com/CharString
CharStringhttps://github.com/CharString
on Nov 26, 2021https://github.com/python/typing_extensions/issues/26#issuecomment-1131767987
CharStringhttps://github.com/CharString
on Nov 26, 2021https://github.com/python/typing_extensions/issues/26#event-6643015003
Vendor typing._SpecialForm to fool typing._type_checkhttps://github.com/CharString/typing/commit/936ebbea9deac86b5aa6ddc681eb60987578f624
936ebbehttps://github.com/CharString/typing/commit/936ebbea9deac86b5aa6ddc681eb60987578f624
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 29, 2021https://github.com/python/typing_extensions/issues/26#event-6643015024
Vendor typing._SpecialForm to fool typing._type_check (#966)https://github.com/python/typing/commit/0c8e55f1631177d0965015e18f56518604b2f519
#966https://github.com/python/typing/pull/966
0c8e55fhttps://github.com/python/typing/commit/0c8e55f1631177d0965015e18f56518604b2f519
CharStringhttps://github.com/CharString
completedhttps://github.com/python/typing_extensions/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 30, 2021https://github.com/python/typing_extensions/issues/26#event-6643015035
srittauhttps://github.com/srittau
on Dec 2, 2021https://github.com/python/typing_extensions/issues/26#event-6643015054
Vendor typing._SpecialForm to fool typing._type_check (python#966)https://github.com/srittau/typing/commit/b5fc284a29a13a216dc1ee3b935ca721e3873d62
python#966https://github.com/python/typing/pull/966
b5fc284https://github.com/srittau/typing/commit/b5fc284a29a13a216dc1ee3b935ca721e3873d62
srittauhttps://github.com/srittau
python/typinghttps://github.com/python/typing
on May 19, 2022https://github.com/python/typing_extensions/issues/26#event-6643016811
https://github.com/ikamensh
ikamenshhttps://github.com/ikamensh
on Aug 9, 2022https://github.com/python/typing_extensions/issues/26#issuecomment-1209185162
https://github.com/Gobot1234
Gobot1234https://github.com/Gobot1234
on Aug 9, 2022https://github.com/python/typing_extensions/issues/26#issuecomment-1209187570
python/mypy#13133https://github.com/python/mypy/pull/13133
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typing_extensions/issues/26
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typing_extensions/issues/26
topic: typing-extensionshttps://github.com/python/typing_extensions/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing-extensions%22
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.