Title: Support for PEP 695 (Type parameters / generics) · Issue #262 · MagicStack/MagicPython · GitHub
Open Graph Title: Support for PEP 695 (Type parameters / generics) · Issue #262 · MagicStack/MagicPython
X Title: Support for PEP 695 (Type parameters / generics) · Issue #262 · MagicStack/MagicPython
Description: Related to #229: when writing a generic class/function that uses type parameters, the syntax is incorrectly highlighted. This syntax was introduced in 3.12 via PEP 695. Currently these are incorrectly scoped as attribute access (see atta...
Open Graph Description: Related to #229: when writing a generic class/function that uses type parameters, the syntax is incorrectly highlighted. This syntax was introduced in 3.12 via PEP 695. Currently these are incorrec...
X Description: Related to #229: when writing a generic class/function that uses type parameters, the syntax is incorrectly highlighted. This syntax was introduced in 3.12 via PEP 695. Currently these are incorrec...
Opengraph URL: https://github.com/MagicStack/MagicPython/issues/262
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for PEP 695 (Type parameters / generics)","articleBody":"Related to #229: when writing a generic class/function that uses type parameters, the syntax is incorrectly highlighted. This syntax was introduced in 3.12 via [PEP 695](https://peps.python.org/pep-0695/).\r\n\r\nCurrently these are incorrectly scoped as attribute access (see attached screenshots). MVP to reproduce is simply\r\n\r\n```python\r\nclass Foo[T]:\r\n pass\r\n```\r\n\r\n* **Editor name and version**: Sublime text 4169\r\n* **Platform**: Windows 10\r\n* **Color scheme**: Monokai\r\n* **MagicPython version**: 1.1.1\r\n\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/Badg","@type":"Person","name":"Badg"},"datePublished":"2024-01-15T22:27:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/262/MagicPython/issues/262"}
| 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:bee42b9a-8559-adff-b8f5-669f8cbbc32f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EE4:E1D0E:AA824F:E116BA:696B5815 |
| html-safe-nonce | 506b2d9dbc2607daa27d4fc6b81ffef09609a26eb892679ab10f39c8aa931a33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUU0OkUxRDBFOkFBODI0RjpFMTE2QkE6Njk2QjU4MTUiLCJ2aXNpdG9yX2lkIjoiNDE3MjA5OTU4MzQ4OTAzODM1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85bcdba996132124e31bb75e7c4f213be4e286045869987313e6cf671d31eb46 |
| hovercard-subject-tag | issue:2082752072 |
| 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/MagicStack/MagicPython/262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f30b2afabf29259ae674bfbb861edbabe504ea79fb4da8c47f3b461359e3adfd/MagicStack/MagicPython/issues/262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f30b2afabf29259ae674bfbb861edbabe504ea79fb4da8c47f3b461359e3adfd/MagicStack/MagicPython/issues/262 |
| og:image:alt | Related to #229: when writing a generic class/function that uses type parameters, the syntax is incorrectly highlighted. This syntax was introduced in 3.12 via PEP 695. Currently these are incorrec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Badg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/MagicStack/MagicPython git https://github.com/MagicStack/MagicPython.git |
| octolytics-dimension-user_id | 14324950 |
| octolytics-dimension-user_login | MagicStack |
| octolytics-dimension-repository_id | 43982620 |
| octolytics-dimension-repository_nwo | MagicStack/MagicPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43982620 |
| octolytics-dimension-repository_network_root_nwo | MagicStack/MagicPython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width