Skip to content

[MNT]: pyplot type hints #30160

Closed
Closed
@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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions