Title: Inconsistent `repr` of `types.GenericAlias` with `ParamSpec` · Issue #105486 · python/cpython · GitHub
Open Graph Title: Inconsistent `repr` of `types.GenericAlias` with `ParamSpec` · Issue #105486 · python/cpython
X Title: Inconsistent `repr` of `types.GenericAlias` with `ParamSpec` · Issue #105486 · python/cpython
Description: The simplest repro: >>> type A[X, **Y] = None >>> A[int, [str]] A[int, [
Open Graph Description: The simplest repro: >>> type A[X, **Y] = None >>> A[int, [str]] A[int, [
X Description: The simplest repro: >>> type A[X, **Y] = None >>> A[int, [str]] A[int, [<class 'str'>]] I think that it should be: >>> type A[X, **Y] = None >>> A[...
Opengraph URL: https://github.com/python/cpython/issues/105486
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent `repr` of `types.GenericAlias` with `ParamSpec`","articleBody":"The simplest repro:\r\n\r\n```python\r\n\u003e\u003e\u003e type A[X, **Y] = None\r\n\u003e\u003e\u003e A[int, [str]]\r\nA[int, [\u003cclass 'str'\u003e]]\r\n```\r\n\r\nI think that it should be:\r\n\r\n```python\r\n\u003e\u003e\u003e type A[X, **Y] = None\r\n\u003e\u003e\u003e A[int, [str]]\r\nA[int, [str]]\r\n```\r\n\r\nWe already had similar issues in the past: https://github.com/python/cpython/pull/102637\r\n\r\nThis happens somewhere in `ga_repr`, I will have a look.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105488\n* gh-106297\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-06-08T05:24:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/105486/cpython/issues/105486"}
| 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:8683688a-2e76-79c6-6f7d-e323819e1fa2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADB8:1F8F34:B4515F:F6B80F:6969F1D1 |
| html-safe-nonce | fd80ca6149885806abf43db00a86c6284dbc8a4ee63eb6a5a35d36ed3eef474b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREI4OjFGOEYzNDpCNDUxNUY6RjZCODBGOjY5NjlGMUQxIiwidmlzaXRvcl9pZCI6IjM4NjcwNTYwNDY3NTU5MzQ2NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 19769782205c36f28905b538bf83f5e6454c0f978bf5379fda1d3451db92ffe5 |
| hovercard-subject-tag | issue:1747107538 |
| 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/105486/issue_layout |
| twitter:image | https://opengraph.githubassets.com/210957ef2bb8c677872c1cdfef2a2009862009b92b47fc08c52e5022444d1687/python/cpython/issues/105486 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/210957ef2bb8c677872c1cdfef2a2009862009b92b47fc08c52e5022444d1687/python/cpython/issues/105486 |
| og:image:alt | The simplest repro: >>> type A[X, **Y] = None >>> A[int, [str]] A[int, [ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| 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