Title: PEP 695: typing.TypeVar should be subclassable · Issue #104662 · python/cpython · GitHub
Open Graph Title: PEP 695: typing.TypeVar should be subclassable · Issue #104662 · python/cpython
X Title: PEP 695: typing.TypeVar should be subclassable · Issue #104662 · python/cpython
Description: Previously typing.TypeVar could be subclassed, and typing_extensions actually does this. However, the new C implementation of TypeVar doesn't allow subclassing. For compatibility, let's restore the ability to subclass it.
Open Graph Description: Previously typing.TypeVar could be subclassed, and typing_extensions actually does this. However, the new C implementation of TypeVar doesn't allow subclassing. For compatibility, let's restore the...
X Description: Previously typing.TypeVar could be subclassed, and typing_extensions actually does this. However, the new C implementation of TypeVar doesn't allow subclassing. For compatibility, let's res...
Opengraph URL: https://github.com/python/cpython/issues/104662
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 695: typing.TypeVar should be subclassable","articleBody":"Previously `typing.TypeVar` could be subclassed, and `typing_extensions` actually does this. However, the new C implementation of `TypeVar` doesn't allow subclassing. For compatibility, let's restore the ability to subclass it.","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2023-05-19T16:12:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/104662/cpython/issues/104662"}
| 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:ab5d8ef0-8ac2-42cc-2866-6f5536264fdb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBBC:1C99EC:A337C4:E31013:696A30F3 |
| html-safe-nonce | 6d8abfb57c7df71926e0469ac94338473927f6994d806e3eae9a5d9a5ab8fa05 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkJDOjFDOTlFQzpBMzM3QzQ6RTMxMDEzOjY5NkEzMEYzIiwidmlzaXRvcl9pZCI6IjMyNjUwMjEzOTI3MjQ4MzI0OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 572ccc126611a4c8806f62244bf5c2b51bf354a1eff0d1af15f856668b5345a5 |
| hovercard-subject-tag | issue:1717495888 |
| 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/104662/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0dae6d4cab973ef58a46cb22d8f19a3d2180cee2450e35af463e782c9b05c96/python/cpython/issues/104662 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0dae6d4cab973ef58a46cb22d8f19a3d2180cee2450e35af463e782c9b05c96/python/cpython/issues/104662 |
| og:image:alt | Previously typing.TypeVar could be subclassed, and typing_extensions actually does this. However, the new C implementation of TypeVar doesn't allow subclassing. For compatibility, let's restore the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| hostname | github.com |
| expected-hostname | github.com |
| None | ade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623 |
| 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 | c00842167ca2e5b13e8171812965d503e925ece6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width