Skip to content

[MNT]: pyplot type hints #30160

Open
Open
@ZPyrolink

Description

@ZPyrolink

Summary

Is there any reason why some functions in pyplot.py use *args and **kwargs as their only parameters (e.g. show, figlegend, or savefig) and therefore have untyped parameters?

Proposed fix

Specify the actual signature or type parameters with Unpack[TypedDict] and Unpack[tuple] (however, parameter names are lost here)

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