Title: Error message for walrus etc. in PEP 695 contexts could be improved · Issue #104572 · python/cpython · GitHub
Open Graph Title: Error message for walrus etc. in PEP 695 contexts could be improved · Issue #104572 · python/cpython
X Title: Error message for walrus etc. in PEP 695 contexts could be improved · Issue #104572 · python/cpython
Description: Before: >>> type A[T: (x:=3)] = int File "
Open Graph Description: Before: >>> type A[T: (x:=3)] = int File "
X Description: Before: >>> type A[T: (x:=3)] = int File "<stdin>", line 1 SyntaxError: 'named expression' can not be used within a TypeVar bound After: >>> type A[T: (x:=...
Opengraph URL: https://github.com/python/cpython/issues/104572
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error message for walrus etc. in PEP 695 contexts could be improved","articleBody":"Before:\r\n\r\n```\r\n\u003e\u003e\u003e type A[T: (x:=3)] = int\r\n File \"\u003cstdin\u003e\", line 1\r\nSyntaxError: 'named expression' can not be used within a TypeVar bound\r\n```\r\n\r\nAfter:\r\n\r\n```\r\n\u003e\u003e\u003e type A[T: (x:=3)] = int\r\n File \"\u003cstdin\u003e\", line 1\r\nSyntaxError: named expression cannot be used within a TypeVar bound\r\n```\r\n\r\n(\"cannot\" is one word; the quotes don't really make sense here)\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104573\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2023-05-17T02:11:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/104572/cpython/issues/104572"}
| 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:357f4eac-285c-edd5-e633-b3eb80359448 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 821A:1C02DC:26B0417:35CD71C:69694CE4 |
| html-safe-nonce | f612da8c24982734593471125ca449b26a174c2b9b8f4d680e93268769bb8de7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjFBOjFDMDJEQzoyNkIwNDE3OjM1Q0Q3MUM6Njk2OTRDRTQiLCJ2aXNpdG9yX2lkIjoiNjM0NDQ2Mzg5MTEzNTI4NjUwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 799a68d0c2d843434f6105b0809a9497f1e8d020aea3f2b991a84165045c567e |
| hovercard-subject-tag | issue:1712981316 |
| 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/104572/issue_layout |
| twitter:image | https://opengraph.githubassets.com/694bfb00a350b55b0437854330d7c2925ff343010ef6cc1e52e1f3f5f05fde38/python/cpython/issues/104572 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/694bfb00a350b55b0437854330d7c2925ff343010ef6cc1e52e1f3f5f05fde38/python/cpython/issues/104572 |
| og:image:alt | Before: >>> type A[T: (x:=3)] = int File " |
| 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 | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width