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: patch-diff.githubusercontent.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:929da0f3-4997-601b-92f7-35b6175e9de5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B424:32B219:363CD98:4A4EB23:696E1C9B |
| html-safe-nonce | d759e83a384fbc6c654f59f1ed47d4556a9f8f38e4978f09bb5a613b2388b291 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDI0OjMyQjIxOTozNjNDRDk4OjRBNEVCMjM6Njk2RTFDOUIiLCJ2aXNpdG9yX2lkIjoiNjM1NDI0NjM1Nzc1NzA3NDU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d7ff14f30ad00b89caf2319d1bde8d1b00ce7c9fa0d43d853b4c806196d7014 |
| 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 | 113cc336e7105fbb9f2ee8beb67c6cc584d65fa66a8a1a5dd236ba66db174af7 |
| 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 | 1d23f8b0bc31294c6a73ba2f3adfdd8c7052ca1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width