Title: Support for type parameters · Issue #273 · MagicStack/MagicPython · GitHub
Open Graph Title: Support for type parameters · Issue #273 · MagicStack/MagicPython
X Title: Support for type parameters · Issue #273 · MagicStack/MagicPython
Description: Steps to Reproduce: Consider the following code, using type parameters with python >= 3.13: def f[T](x: T) -> T: ... The -> is highlighted red, seemingly indicating a syntax error, although there is no syntax error. Originally from @s-ba...
Open Graph Description: Steps to Reproduce: Consider the following code, using type parameters with python >= 3.13: def f[T](x: T) -> T: ... The -> is highlighted red, seemingly indicating a syntax error, although there i...
X Description: Steps to Reproduce: Consider the following code, using type parameters with python >= 3.13: def f[T](x: T) -> T: ... The -> is highlighted red, seemingly indicating a syntax error, althoug...
Opengraph URL: https://github.com/MagicStack/MagicPython/issues/273
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for type parameters","articleBody":"Steps to Reproduce:\n\nConsider the following code, using type parameters with python \u003e= 3.13:\n\n```python\ndef f[T](x: T) -\u003e T: ...\n```\n\nThe `-\u003e` is highlighted red, seemingly indicating a syntax error, although there is no syntax error.\n\nOriginally from @s-banach in https://github.com/microsoft/vscode/issues/251997\n","author":{"url":"https://github.com/alexr00","@type":"Person","name":"alexr00"},"datePublished":"2025-07-08T09:38:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/273/MagicPython/issues/273"}
| 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:71b83ab8-b9be-59e4-587a-87bbc622113e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2AC:1390E6:9C26F:CDF88:696B588E |
| html-safe-nonce | 62389f59eb56aecfe41193fea89a2ff9f8b7759863233ca461413afa14f9c399 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkFDOjEzOTBFNjo5QzI2RjpDREY4ODo2OTZCNTg4RSIsInZpc2l0b3JfaWQiOiIxOTg2NTg1MjU3MjQ2MjkxMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4107b7d53265737db64cb3faa12074733c2e43e6798288e13f15444fb70419d6 |
| hovercard-subject-tag | issue:3211791064 |
| 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/273/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9e16799958810ee523c7371b138c07a3ada31f751d50a77860d8790bcdacc38/MagicStack/MagicPython/issues/273 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9e16799958810ee523c7371b138c07a3ada31f751d50a77860d8790bcdacc38/MagicStack/MagicPython/issues/273 |
| og:image:alt | Steps to Reproduce: Consider the following code, using type parameters with python >= 3.13: def f[T](x: T) -> T: ... The -> is highlighted red, seemingly indicating a syntax error, although there i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexr00 |
| 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