Skip to content

type stubs for matplotlib #17991

Closed
Closed

Description

@tekumara

Would be great if matplotlib shipped with type stubs.

Activity

  1. story645 commented on Jul 21, 2020

    @story645
    Member

    The dev team may rivisit now that numpy has types. Is there any argument you'd like to add to the previous discussions #15926 & #13798 ?

  2. tekumara commented on Jul 21, 2020

    @tekumara
    Author

    FYI: pylance ships matplotlib stubs already, but they are proprietary (for now) and may end up in pyright see https://github.com/microsoft/pyright/issues/861

  3. tacaswell commented on Jul 21, 2020

    @tacaswell
    Member

    I'm going to close this as we are well aware that type annotations exist and adding them across the library is a bigger project than should be tracked in a single issue. I stand by we should let numpy go through a couple of release cylces with the types before we start to adopt them to let the dust settle a bit.

    It is my understanding that the MSFT stubs are auto-generated by walking the code which suggests it is not urgent that we take this on (as the tools that will benefit the most from the stubs can generate their own).

  4. jakebailey commented on Feb 23, 2021

    @jakebailey

    It is my understanding that the MSFT stubs are auto-generated by walking the code which suggests it is not urgent that we take this on (as the tools that will benefit the most from the stubs can generate their own).

    FWIW, this isn't the case; what's shipped with Pylance I wrote by hand over the course of a weekend conference (this weekend was the anniversary of me writing them, yay); they certainly aren't meant to be proprietary in any sense and will end up in https://github.com/microsoft/python-type-stubs (them not being there is an oversight).

    Sorry for bumping an old thread (time flies), I'm just now spending some long-overdue time addressing issues in those stubs and was checking on the state of typing here.

  5. added this to the v3.8.0 milestone on Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions