Title: Add `__orig_bases__` to non-generic TypedDict · Issue #103699 · python/cpython · GitHub
Open Graph Title: Add `__orig_bases__` to non-generic TypedDict · Issue #103699 · python/cpython
X Title: Add `__orig_bases__` to non-generic TypedDict · Issue #103699 · python/cpython
Description: Feature or enhancement As discussed at the typing summit, non generic TypedDict's completely loose all inheritance information. Funny enough, generic TypedDict's actually preserve it via __orig_bases__ because Generic does that. So this ...
Open Graph Description: Feature or enhancement As discussed at the typing summit, non generic TypedDict's completely loose all inheritance information. Funny enough, generic TypedDict's actually preserve it via __orig_bas...
X Description: Feature or enhancement As discussed at the typing summit, non generic TypedDict's completely loose all inheritance information. Funny enough, generic TypedDict's actually preserve it via __...
Opengraph URL: https://github.com/python/cpython/issues/103699
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `__orig_bases__` to non-generic TypedDict","articleBody":"# Feature or enhancement\r\n\r\nAs discussed at the typing summit, non generic TypedDict's completely loose all inheritance information. Funny enough, _generic_ TypedDict's actually preserve it via `__orig_bases__` because Generic does that. So this just brings non-generic TypedDicts to be the same.\r\n\r\n# Pitch\r\n\r\nThis is very useful for runtime type checkers, and as per above the attribute already exists for generic TypedDicts\r\n\r\n# Previous discussion\r\n\r\nDiscussed at PyCon 2023 typing summit, this was an uncontroversial yes at the time.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103698\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/adriangb","@type":"Person","name":"adriangb"},"datePublished":"2023-04-22T22:35:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/103699/cpython/issues/103699"}
| 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:4b61eb2c-b3d1-b4d3-5abb-965440d9a4cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFFC:2F31CD:351A5C:48513A:6969DA45 |
| html-safe-nonce | 65c00828f1067271807991d37fb2bedb6d8e314b435ed4f04b8f88288a72cba2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkZDOjJGMzFDRDozNTFBNUM6NDg1MTNBOjY5NjlEQTQ1IiwidmlzaXRvcl9pZCI6Ijg1Mjg1NzAyNzQyOTY3NDg2MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 499cedaafb22600099dcec46984e9be1ad6a3a5ed89dc6d3930d121935a9275a |
| hovercard-subject-tag | issue:1679759030 |
| 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/cpython/103699/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd1f431bbe54b61d773aeab0af25680bb6a71f91a479839697bb6a0dc0fab907/python/cpython/issues/103699 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd1f431bbe54b61d773aeab0af25680bb6a71f91a479839697bb6a0dc0fab907/python/cpython/issues/103699 |
| og:image:alt | Feature or enhancement As discussed at the typing summit, non generic TypedDict's completely loose all inheritance information. Funny enough, generic TypedDict's actually preserve it via __orig_bas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adriangb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width