MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

support python 3.12 type alias syntax

Open DetachHead opened this issue 1 year ago • 2 comments

python 3.12 introduced new syntax for type aliases:

type Foo = int

this is currently highlighted incorrectly:

image

(the type keyword should be blue and the Foo name should be green)

related: #262

DetachHead avatar Apr 26 '24 10:04 DetachHead

as a workaround, i've fixed this with semantic highlighting in basedpyright:

image

though i'm not sure how to make it blue (or if it even should be blue). https://github.com/DetachHead/basedpyright/issues/147

DetachHead avatar Apr 28 '24 02:04 DetachHead