Skip to content

Add type annotations to ptvsd API #199

Closed

Description

@int19h

The minbar would be our public APIs such as enable_attach, to enable better code completion for them in VSCode and other Python IDEs.

However, we would also derive some engineering benefits from having them in internal code, as well. So let's add them for all newly written code, at least.

Since we need to support Python 2.7, this has to be either in form of PEP 484 type comments, or via .pyi files.

Activity

  1. int19h commented on Oct 13, 2021

    @int19h
    ContributorAuthor

    At this point, we might as well wait until we drop Python 2.7 support, and then do them inline.

  2. added this to the Dev 17.x milestone on Oct 19, 2021
  3. removed their assignment
    on Apr 13, 2022
  4. fabioz commented on Oct 6, 2022

    @fabioz
    Collaborator

    This is now done (the public API has type annotations now).

  5. lev-blit commented on Aug 30, 2025

    @lev-blit
    Contributor

    coming back to this - the public API has type annotations but the package doesn't ship a py.typed file so type checkers like mypy assume the package is untyped...

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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions