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 — missing completions when type keyword is used instead of typing.Type in python3.12 · Issue #675 · python-lsp/python-lsp-server

missing completions when type keyword is used instead of typing.Type in python3.12 #675

New issue
Copy link
New issue
Copy link
Open
Open
missing completions when type keyword is used instead of typing.Type in python3.12#675
Copy link

Description

@vindex10
vindex10
opened on Oct 3, 2025
Issue body actions

Hi! In python3.12 new syntax was introduced for annotating class types:
https://docs.python.org/3/library/typing.html#the-type-of-class-objects

instead of using deprecated typing.Type[C] now type[C] should be used.

I just noticed that autocomplete in pylsp doesn't pick up new syntax yet.

Image

the old syntax works:

Image

I tested on the latest version of pylsp:

$ pylsp --version
pylsp v1.13.2.dev1+g89265cdb7

Activity

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.