Title: Add support for PEP 585 · Issue #229 · MagicStack/MagicPython · GitHub
Open Graph Title: Add support for PEP 585 · Issue #229 · MagicStack/MagicPython
X Title: Add support for PEP 585 · Issue #229 · MagicStack/MagicPython
Description: Since PEP 585 implemented in Python 3.9, one can use the generics syntax even with built-in collections, not just those included in typing (e.g. list vs. typing.List). As such, in the screenshot below, the type hint for argument c isn't ...
Open Graph Description: Since PEP 585 implemented in Python 3.9, one can use the generics syntax even with built-in collections, not just those included in typing (e.g. list vs. typing.List). As such, in the screenshot be...
X Description: Since PEP 585 implemented in Python 3.9, one can use the generics syntax even with built-in collections, not just those included in typing (e.g. list vs. typing.List). As such, in the screenshot be...
Opengraph URL: https://github.com/MagicStack/MagicPython/issues/229
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for PEP 585","articleBody":"Since [PEP 585](https://www.python.org/dev/peps/pep-0585/) implemented in Python 3.9, one can use the generics syntax even with built-in collections, not just those included in `typing` (e.g. `list` vs. `typing.List`).\r\n\r\nAs such, in the screenshot below, the type hint for argument `c` isn't highlighted properly. In `list[int]`, both `list` and `int` should be highlighted, whereas only `int` is highlighted currently. The type hint for argument `b` is highlighted correctly (and same for `a`).\r\n\r\n* **Editor name and version**: VS Code 1.51.1\r\n* **Platform**: Ubuntu 16.04\r\n* **Color scheme**: Tomorrow Night (also tested with other ones but none exhibit the desired behavior)\r\n* **MagicPython version**: From the VS Code extension = 1.1.0\r\n* **A screenshot**:\r\n\r\n* **5-10 lines of surrounding code**: None\r\n","author":{"url":"https://github.com/sprt","@type":"Person","name":"sprt"},"datePublished":"2020-11-16T14:43:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/229/MagicPython/issues/229"}
| 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:e3bd5067-9a6d-1c95-d689-4e4d85ca6926 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC70:129B62:427ABB5:5CDC2E9:6971423D |
| html-safe-nonce | 6f4c3a0ac956907995429797e923fbb75b0a8a03a6e8fd84b2fc8b55e71521fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzcwOjEyOUI2Mjo0MjdBQkI1OjVDREMyRTk6Njk3MTQyM0QiLCJ2aXNpdG9yX2lkIjoiMzEwNTg0Mzk3NzY4MDY2NzE5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 542df26dd0d6618f9d382355726c9816d03233e71101275e82751265f006a49f |
| hovercard-subject-tag | issue:743892452 |
| 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/229/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26f0df760be68fa23d1b8d722c252e49209d1519221086422225de44ca479752/MagicStack/MagicPython/issues/229 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26f0df760be68fa23d1b8d722c252e49209d1519221086422225de44ca479752/MagicStack/MagicPython/issues/229 |
| og:image:alt | Since PEP 585 implemented in Python 3.9, one can use the generics syntax even with built-in collections, not just those included in typing (e.g. list vs. typing.List). As such, in the screenshot be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sprt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9bd14a55b65b030988a89787ed340c0f040258c3240af6941d85f740f21629a0 |
| 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 | 24a7109a3a584a05e29240fcc1ba60220deccdb8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width