Title: A `NoReturn` type is needed · Issue #165 · python/typing · GitHub
Open Graph Title: A `NoReturn` type is needed · Issue #165 · python/typing
X Title: A `NoReturn` type is needed · Issue #165 · python/typing
Description: In order to perform branch analysis, it is necessary to know which calls will never return normally. Examples are sys.exit (which always returns via exception) and os.exit (which never returns). NoReturn should drop out of Union and domi...
Open Graph Description: In order to perform branch analysis, it is necessary to know which calls will never return normally. Examples are sys.exit (which always returns via exception) and os.exit (which never returns). No...
X Description: In order to perform branch analysis, it is necessary to know which calls will never return normally. Examples are sys.exit (which always returns via exception) and os.exit (which never returns). No...
Opengraph URL: https://github.com/python/typing/issues/165
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A `NoReturn` type is needed","articleBody":"In order to perform branch analysis, it is necessary to know which calls will never return normally. Examples are `sys.exit` (which always returns via exception) and `os.exit` (which never returns).\n\n`NoReturn` should drop out of `Union` and dominate `Intersection`.\n\nTo manually mark a branch as dead, use `cast(NoReturn, expression)` in an expression context, or `raise` in statement context.\n\nThis can also be used as the return type of `__init__` or `__new__` or the metaclass's `__call__` to indicate types that can't be normally instantiated.\n","author":{"url":"https://github.com/o11c","@type":"Person","name":"o11c"},"datePublished":"2015-10-27T23:02:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":27},"url":"https://github.com/165/typing/issues/165"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:07e2c939-be7b-713c-55d6-a094b9fc11c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A272:2AF61E:C22A66:FC9065:6A5AE9B2 |
| html-safe-nonce | 3398fce9e1f07d8bcf2f990a53ec0cbfeb47c92671ab0886d7b6560f56325b01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjcyOjJBRjYxRTpDMjJBNjY6RkM5MDY1OjZBNUFFOUIyIiwidmlzaXRvcl9pZCI6IjM4MTQxMzEwNzYwNDM1NjU0OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7aebabc6b9d1595fe982409279e8bcf3cf1290d6b0bc1d18e0c40e42da95576b |
| hovercard-subject-tag | issue:113707917 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typing/165/issue_layout |
| twitter:image | https://opengraph.githubassets.com/262ccb1a5e971ec24f049a81d31c376a9a5a90a3a263de437ad85929041bbcb7/python/typing/issues/165 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/262ccb1a5e971ec24f049a81d31c376a9a5a90a3a263de437ad85929041bbcb7/python/typing/issues/165 |
| og:image:alt | In order to perform branch analysis, it is necessary to know which calls will never return normally. Examples are sys.exit (which always returns via exception) and os.exit (which never returns). No... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | o11c |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width