René's URL Explorer Experiment


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

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@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![2024-01-15-magicpython_pep_695](https://github.com/MagicStack/MagicPython/assets/6155386/14373e05-517f-414f-b64a-4afeab6becf4)\r\n![2024-01-15-magicpython_pep_695_scope](https://github.com/MagicStack/MagicPython/assets/6155386/8d35ad3a-348e-4505-8794-65c3197ae07d)\r\n![2024-01-15-magicpython_pep_695_scope_2](https://github.com/MagicStack/MagicPython/assets/6155386/64d8a977-4a8e-4351-b77a-7407f7aa7cc0)\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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0092c5ad-c729-aa29-229a-959fc294726f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3BA:2F79D3:4175A0:5C9830:6A62F987
html-safe-nonce57a777ed231cec58ed08c8580aba314250316c6b04e4aad99fefd767edfae476
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0JBOjJGNzlEMzo0MTc1QTA6NUM5ODMwOjZBNjJGOTg3IiwidmlzaXRvcl9pZCI6Ijc3MTg3Njg0ODAwMDg0Njg4NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd173649cb1392e21ccd186ab2d6d19b354f47cae302753c7b1ba3190aa60e23d
hovercard-subject-tagissue:2082752072
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MagicStack/MagicPython/262/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f30b2afabf29259ae674bfbb861edbabe504ea79fb4da8c47f3b461359e3adfd/MagicStack/MagicPython/issues/262
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f30b2afabf29259ae674bfbb861edbabe504ea79fb4da8c47f3b461359e3adfd/MagicStack/MagicPython/issues/262
og:image:altRelated 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBadg
hostnamegithub.com
expected-hostnamegithub.com
None59e40dc698184067b40ef2d941585f66ed42711564a879644f984f1eacea129c
turbo-cache-controlno-preview
go-importgithub.com/MagicStack/MagicPython git https://github.com/MagicStack/MagicPython.git
octolytics-dimension-user_id14324950
octolytics-dimension-user_loginMagicStack
octolytics-dimension-repository_id43982620
octolytics-dimension-repository_nwoMagicStack/MagicPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id43982620
octolytics-dimension-repository_network_root_nwoMagicStack/MagicPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb4f544bf80583e749557efd76afda56317b6252d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/MagicStack/MagicPython/issues/262#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMagicStack%2FMagicPython%2Fissues%2F262
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMagicStack%2FMagicPython%2Fissues%2F262
Sign up https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=MagicStack%2FMagicPython
Reloadhttps://Github.com/MagicStack/MagicPython/issues/262
Reloadhttps://Github.com/MagicStack/MagicPython/issues/262
Reloadhttps://Github.com/MagicStack/MagicPython/issues/262
Please reload this pagehttps://Github.com/MagicStack/MagicPython/issues/262
MagicStack https://Github.com/MagicStack
MagicPythonhttps://Github.com/MagicStack/MagicPython
Notifications https://Github.com/login?return_to=%2FMagicStack%2FMagicPython
Fork 100 https://Github.com/login?return_to=%2FMagicStack%2FMagicPython
Star 1.4k https://Github.com/login?return_to=%2FMagicStack%2FMagicPython
Code https://Github.com/MagicStack/MagicPython
Issues 65 https://Github.com/MagicStack/MagicPython/issues
Pull requests 5 https://Github.com/MagicStack/MagicPython/pulls
Actions https://Github.com/MagicStack/MagicPython/actions
Projects https://Github.com/MagicStack/MagicPython/projects
Wiki https://Github.com/MagicStack/MagicPython/wiki
Security and quality 0 https://Github.com/MagicStack/MagicPython/security
Insights https://Github.com/MagicStack/MagicPython/pulse
Code https://Github.com/MagicStack/MagicPython
Issues https://Github.com/MagicStack/MagicPython/issues
Pull requests https://Github.com/MagicStack/MagicPython/pulls
Actions https://Github.com/MagicStack/MagicPython/actions
Projects https://Github.com/MagicStack/MagicPython/projects
Wiki https://Github.com/MagicStack/MagicPython/wiki
Security and quality https://Github.com/MagicStack/MagicPython/security
Insights https://Github.com/MagicStack/MagicPython/pulse
Support for PEP 695 (Type parameters / generics)https://Github.com/MagicStack/MagicPython/issues/262#top
https://github.com/Badg
Badghttps://github.com/Badg
on Jan 15, 2024https://github.com/MagicStack/MagicPython/issues/262#issue-2082752072
#229https://github.com/MagicStack/MagicPython/issues/229
PEP 695https://peps.python.org/pep-0695/
https://private-user-images.githubusercontent.com/6155386/296879602-14373e05-517f-414f-b64a-4afeab6becf4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ4NzE2MDMsIm5iZiI6MTc4NDg3MTMwMywicGF0aCI6Ii82MTU1Mzg2LzI5Njg3OTYwMi0xNDM3M2UwNS01MTdmLTQxNGYtYjY0YS00YWZlYWI2YmVjZjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDcyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA3MjRUMDUzNTAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTA3MGJlM2M0MzdjM2Y0ODcxMzhhZTk1Y2JkZjRjODgzOWI0YjUwNmVhMDRiNTRjZGJiMDcyOGNjNTcyZTJiZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.AUFGRxbML9eWo1m2pPJxdLg-Z-Gjn2nQYtp6dI0fLf4
https://private-user-images.githubusercontent.com/6155386/296879604-8d35ad3a-348e-4505-8794-65c3197ae07d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ4NzE2MDMsIm5iZiI6MTc4NDg3MTMwMywicGF0aCI6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ZYLUFtei1TaWduYXR1cmU9ODhjZTA0ZTQzMzBmNWExNzM4MGZlYWVhMjgyOWMyMjgwNDA5Nzk3OGY2NzgzZmEyNGRlMzE2OWM2NTE2NWZiNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.KhDUNncyLnGON3l1WQtucQi2uUK9S2MWmewp0Xrm5KM
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.