Title: typing.Protocol in 3.11 needs to be backported · Issue #104 · python/typing_extensions · GitHub
Open Graph Title: typing.Protocol in 3.11 needs to be backported · Issue #104 · python/typing_extensions
X Title: typing.Protocol in 3.11 needs to be backported · Issue #104 · python/typing_extensions
Description: In [6]: @runtime_checkable ...: class BaseBadge(Protocol): ...: def __init__(self) -> None: ... In [7]: BaseBadge.__init__ Out[7]:
Open Graph Description: In [6]: @runtime_checkable ...: class BaseBadge(Protocol): ...: def __init__(self) -> None: ... In [7]: BaseBadge.__init__ Out[7]:
X Description: In [6]: @runtime_checkable ...: class BaseBadge(Protocol): ...: def __init__(self) -> None: ... In [7]: BaseBadge.__init__ Out[7]: <function typing._no_init_or_replace_init(self, *args, **kwa...
Opengraph URL: https://github.com/python/typing_extensions/issues/104
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"typing.Protocol in 3.11 needs to be backported","articleBody":"```py\r\nIn [6]: @runtime_checkable\r\n ...: class BaseBadge(Protocol):\r\n ...: def __init__(self) -\u003e None: ...\r\n\r\nIn [7]: BaseBadge.__init__\r\nOut[7]: \u003cfunction typing._no_init_or_replace_init(self, *args, **kwargs)\u003e\r\n```\r\nThis behaviour is not consistent with python 3.11\r\n```pycon\r\n\u003e\u003e\u003e from typing import *\r\n\u003e\u003e\u003e @runtime_checkable\r\n... class BaseBadge(Protocol):\r\n... def __init__(self) -\u003e None: ...\r\n... \r\n\u003e\u003e\u003e BaseBadge.__init__\r\n\u003cfunction BaseBadge.__init__ at 0x104f249a0\u003e\r\n```\r\nThis may have made me slightly concerned I was loosing my sanity in a subclass today 😀 ","author":{"url":"https://github.com/Gobot1234","@type":"Person","name":"Gobot1234"},"datePublished":"2022-12-26T00:05:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/104/typing_extensions/issues/104"}
| 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:dbc71fad-a608-92c2-4e70-e54b298d09cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8300:65407:D15EE:1173A5:6969A460 |
| html-safe-nonce | af60e6c40a48ac55315bb7e20450945d59bbe2ac9be01d2aa0fca70a19ae59d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzAwOjY1NDA3OkQxNUVFOjExNzNBNTo2OTY5QTQ2MCIsInZpc2l0b3JfaWQiOiIzMTg0NDYzMDY2MjcwNjM5MjAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e61444a75e8e7b26ddb9c365864c2c4bd4cedc161286a58c0212453428fd0ef7 |
| hovercard-subject-tag | issue:1510447131 |
| 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_extensions/104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84bf2d092d86cb880d7b27de69df0250b11c8eec0475b0063acd86c199e7c2cb/python/typing_extensions/issues/104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84bf2d092d86cb880d7b27de69df0250b11c8eec0475b0063acd86c199e7c2cb/python/typing_extensions/issues/104 |
| og:image:alt | In [6]: @runtime_checkable ...: class BaseBadge(Protocol): ...: def __init__(self) -> None: ... In [7]: BaseBadge.__init__ Out[7]: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gobot1234 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing_extensions git https://github.com/python/typing_extensions.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 494077289 |
| octolytics-dimension-repository_nwo | python/typing_extensions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 494077289 |
| octolytics-dimension-repository_network_root_nwo | python/typing_extensions |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width