René's URL Explorer Experiment


Title: NoReturn and Never are underspecified in the spec · Issue #1458 · python/typing · GitHub

Open Graph Title: NoReturn and Never are underspecified in the spec · Issue #1458 · python/typing

X Title: NoReturn and Never are underspecified in the spec · Issue #1458 · python/typing

Description: Never was added without a PEP as a way to directly indicate that something is uninhabited in 3.11 This brings up something from CarliJoy/intersection_examples#5 (comment) where we now have a way to express what appears to be an LSP viola...

Open Graph Description: Never was added without a PEP as a way to directly indicate that something is uninhabited in 3.11 This brings up something from CarliJoy/intersection_examples#5 (comment) where we now have a way to...

X Description: Never was added without a PEP as a way to directly indicate that something is uninhabited in 3.11 This brings up something from CarliJoy/intersection_examples#5 (comment) where we now have a way to...

Opengraph URL: https://github.com/python/typing/issues/1458

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NoReturn and Never are underspecified in the spec","articleBody":"Never was added without a PEP as a way to directly indicate that something is uninhabited in 3.11\r\n\r\nThis brings up something from \u003chttps://github.com/CarliJoy/intersection_examples/issues/5#issuecomment-1699490563> where we now have a way to express what appears to be an LSP violation that type checks (incorrectly) properly via structural subtyping by mishandling Never as a subtype of other types. Never is not a subtype of all other types. As the bottom type, it is uninhabited and does not follow subtyping rules.\r\n\r\n```py\r\nfrom typing import Never\r\n\r\nclass A:\r\n    def foo(self, x: int) -> None: ...\r\n    \r\nclass B(A):\r\n    foo: Never   # __getattr__(B, \"foo\") -> raise NotImplementedError\r\n    \r\nx: A = B()  # type checks \r\nreveal_type(B.foo)\r\n```\r\n\r\nhttps://mypy-play.net/?mypy=latest&python=3.11&flags=strict&gist=a4279b36d82c1a28d7b17be9a4bbcbdf\r\n\r\nI believe under LSP, B is no longer a safe drop-in replacement for A. It's important to note that ongoing work to formalize the type system, including Never does not treat Never as a subtype of all other types, see the ongoing work here: http://bit.ly/python-subtyping\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/DiscordLiz","@type":"Person","name":"DiscordLiz"},"datePublished":"2023-08-30T17:15:57Z","url":"https://github.com/python/typing/issues/1458"}

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:02bc9326-abd1-22b6-1425-b5771f5e1ccb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDC8:29A20E:5EF4ED:80747C:6AFF8889
html-safe-nonce2b2c3eec7ae960ab3db09030a05e8181f217953abdaf31e9d9ce09d0ea7f26bb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREM4OjI5QTIwRTo1RUY0RUQ6ODA3NDdDOjZBRkY4ODg5IiwidmlzaXRvcl9pZCI6Ijc1NzEwNzUzMDkzMDczOTgyODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf8fc4196e4df298e4ce8ba086de60dc8336f81e2e98ae4050ecb553c8302884a
hovercard-subject-tagissue:1874251869
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/1458/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f4d41c8f558c873087a66d17e31b6870181aa60001158808444b893a2a560906/python/typing/issues/1458
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4d41c8f558c873087a66d17e31b6870181aa60001158808444b893a2a560906/python/typing/issues/1458
og:image:altNever was added without a PEP as a way to directly indicate that something is uninhabited in 3.11 This brings up something from CarliJoy/intersection_examples#5 (comment) where we now have a way to...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDiscordLiz
hostnamegithub.com
expected-hostnamegithub.com
None587ad99a3e443b2e1cb0d3df059ec49ab54389861f13310766dfdeb615fed90d
turbo-cache-controlno-preview
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
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
release5bb0fb68d64881d1344f5863d809515d496801e5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typing/issues/1458#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F1458
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%2Fissues%2F1458
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
Reloadhttps://github.com/python/typing/issues/1458
Reloadhttps://github.com/python/typing/issues/1458
Reloadhttps://github.com/python/typing/issues/1458
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
https://github.com/python/typing
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/1458
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/1458
#2309https://github.com/python/typing/pull/2309
NoReturn and Never are underspecified in the spechttps://github.com/python/typing/issues/1458#top
#2309https://github.com/python/typing/pull/2309
topic: typing specFor improving the typing spechttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%20spec%22
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Aug 30, 2023https://github.com/python/typing/issues/1458#issue-1874251869
CarliJoy/intersection_examples#5 (comment)https://github.com/CarliJoy/intersection_examples/issues/5#issuecomment-1699490563
https://mypy-play.net/?mypy=latest&python=3.11&flags=strict&gist=a4279b36d82c1a28d7b17be9a4bbcbdfhttps://mypy-play.net/?mypy=latest&python=3.11&flags=strict&gist=a4279b36d82c1a28d7b17be9a4bbcbdf
http://bit.ly/python-subtypinghttp://bit.ly/python-subtyping
Nexthttps://github.com/python/typing/issues/1458?timeline_page=1
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722783
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722786
https://github.com/erictraut
erictrauthttps://github.com/erictraut
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722791
@DiscordLizhttps://github.com/DiscordLiz
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722797
https://github.com/tmke8
tmke8https://github.com/tmke8
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722802
Wikipedia article on bottom typeshttps://en.wikipedia.org/wiki/Bottom_type
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722804
@DiscordLizhttps://github.com/DiscordLiz
Wikipedia article on bottom typeshttps://en.wikipedia.org/wiki/Bottom_type
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722807
@tmke8https://github.com/tmke8
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722810
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699722815
JelleZijlstrahttps://github.com/JelleZijlstra
python/mypyhttps://github.com/python/mypy
on Aug 30, 2023https://github.com/python/typing/issues/1458#event-10236664724
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699731069
https://github.com/erictraut
erictrauthttps://github.com/erictraut
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699831429
in this mypy issuehttps://github.com/python/mypy/issues/5818#issuecomment-432616244
https://github.com/tmke8
tmke8https://github.com/tmke8
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699847162
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699859024
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Aug 30, 2023https://github.com/python/typing/issues/1458#issuecomment-1699905483
python/mypy#5818 (comment)https://github.com/python/mypy/issues/5818#issuecomment-432616244
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1715952082
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1715972932
#1458 (comment)https://github.com/python/typing/issues/1458#issuecomment-1715887481
https://github.com/kmillikin
kmillikinhttps://github.com/kmillikin
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716008024
#1https://github.com/python/typing/issues/1
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716046359
#1https://github.com/python/typing/issues/1
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716257975
@kmillikinhttps://github.com/kmillikin
known broken by mypy since 2017, and that other type checkers have replicatedhttps://github.com/python/mypy/issues/3208
https://github.com/kmillikin
kmillikinhttps://github.com/kmillikin
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716276278
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716284328
@kmillikinhttps://github.com/kmillikin
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716296752
@DiscordLizhttps://github.com/DiscordLiz
work on the underlying specification firsthttps://github.com/python/typing/issues/1458#issuecomment-1711070470
https://github.com/kmillikin
kmillikinhttps://github.com/kmillikin
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716351688
@DiscordLizhttps://github.com/DiscordLiz
https://github.com/DiscordLiz
DiscordLizhttps://github.com/DiscordLiz
on Sep 12, 2023https://github.com/python/typing/issues/1458#issuecomment-1716396298
@kmillikinhttps://github.com/kmillikin
@erictrauthttps://github.com/erictraut
holisticallyhttps://github.com/python/typing/issues/1458#issuecomment-1711070470
https://github.com/dimaqq
dimaqqhttps://github.com/dimaqq
on Sep 26, 2023https://github.com/python/typing/issues/1458#issuecomment-1734922969
https://github.com/leycec
leycechttps://github.com/leycec
on Jan 22, 2026https://github.com/python/typing/issues/1458#issuecomment-3782851445
"Never was added without a PEP"https://github.com/python/typing/issues/1458#issue-1874251869
you can also now annotate arbitrary attributes by typing.Never and thus typing.NoReturnhttps://github.com/python/typing/issues/1458#issuecomment-1699831429
@beartypehttps://github.com/beartype
both PEP 484- and 604-compliant unions can also be subscripted by typing.Neverhttps://github.com/python/typing/issues/1458#issuecomment-1699722802
@beartypehttps://github.com/beartype
srittauhttps://github.com/srittau
on Jan 22, 2026https://github.com/python/typing/issues/1458#event-22222044650
srittauhttps://github.com/srittau
topic: typing specFor improving the typing spechttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%20spec%22
on Jan 22, 2026https://github.com/python/typing/issues/1458#event-22222046906
https://github.com/mikeshardmind
mikeshardmindhttps://github.com/mikeshardmind
on Jan 23, 2026https://github.com/python/typing/issues/1458#issuecomment-3792742854
@leycechttps://github.com/leycec
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typing/issues/1458
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typing/issues/1458
topic: typing specFor improving the typing spechttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%20spec%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.