Skip to content

Support for Python Type Hints (PEP 484) #15926

Closed

Description

@CraigMiloRogers

It would be helpful if matplotlib supported Python type hints (PEP 484, the typing module, etc.). I can attest that I, myself, have made mistakes using matplotlib that might have been more quickly resolved if type hints were available.

I realize that this is a significant change, requiring a significant effort. I may be able to contribute some time to this end.

Activity

  1. story645 commented on Dec 13, 2019

    @story645
    Member

    Thank you for your offer to help. This was discussed in #13798 and on the dev call* and the consensus was that @tacaswell is open to matplotlib/matplotilb-typeshed if people are interested in writing and supporting pyi files, but that typing (especially in upstream scientific packages) isn't standardized enough yet for Matplotlib to adopt inline use.

    *https://paper.dropbox.com/doc/In-Matplotlib-2019-meeting-agenda--AqWjIHu14j1631lSPjHsbDuRAg-aAmENlkgepgsMeDZtlsYu#:h2=No-3.8-syntax-before-2021-(dro

  2. anntzer commented on Dec 31, 2019

    @anntzer
    Contributor

    I'm going to close this as non-actionable given that this was discussed not so long ago in #13798 and I don't think the state of typing in Python changed significantly since then.

  3. 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