← Winnitude! Search  ·  Reader Mode (755 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 8 LINKS

Support for PEP 695 (Type parameters / generics) · Issue #262 · MagicStack/MagicPython

Repository navigation

Support for PEP 695 (Type parameters / generics)  #262


New issue

New issue

Open

Open
Support for PEP 695 (Type parameters / generics) #262

Description

@Badg's profile Badg opened on Jan 15, 2024

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 attached screenshots). MVP to reproduce is simply

class Foo[T]:
  pass
  • Editor name and version : Sublime text 4169
  • Platform : Windows 10
  • Color scheme : Monokai
  • MagicPython version : 1.1.1



Reacted by DetachHead and Avasam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions