GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — support python 3.12 type alias syntax · Issue #265 · MagicStack/MagicPython

support python 3.12 type alias syntax #265

New issue
Copy link
New issue
Copy link
Open
Open
support python 3.12 type alias syntax#265
Copy link

Description

@DetachHead
DetachHead
opened on Apr 26, 2024
Issue body actions

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

Activity

  1. DetachHead commented on Apr 28, 2024

    @DetachHead
    DetachHead
    on Apr 28, 2024
    Author
    More actions

    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). DetachHead/basedpyright#147

  2. asottile commented on Mar 12, 2025

    @asottile
    asottile
    on Mar 12, 2025
    Contributor
    More actions

    I took a hacky stab at this in #270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.