Skip to content

[Tracker] : Improve type annotation coverage #32157

Description

@Aniketsy

This issue is to keep track of work on improving type hints in matplotlib

Main task : TypedDicts for Artist properties

Let's do this separately, because it's a dedicated and complex enough effort: Basically what we want is a Typed Dict for the artist properties. Artist properties are essentially the things you can set_[propname] on any object. These are in many cases the accepted and passed though by kwargs, and therefore artist property Typed Dicts make sense.

You'll want to create a Typed Dict hierarchy following the Artist hierarchy, i.e. TextProperties inheriting from ArtistProperties.

Originally posted by @timhoffm in #32139 (comment)

for now this is our task, i'll be updating issue description as we proceed.

And another main reason for opening this is to have discussion, so please feel free to share your thoughts on this . Thank you 😊

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions