Skip to content

Conversation

@ksunden
Copy link
Member

@ksunden ksunden commented May 9, 2023

PR summary

Broadly makes the type hints more reflective of runtime behavior, though does incur some type:ignore comments because of sub/superclass interactions

In particular, mypy does not approve of making parameters to methods mandatory for subclasses (it is fine with adding optional params, just not making valid superclass calls invalid).
Nor does it approve of removing even an optional param (for the same reason).

Helper _path functions which are undocumented are no longer exported in the transforms namespace.

Some additional comments added regarding corner cases of typing/explaining new ignores

PR checklist

Broadly makes the type hints more reflective of runtime behavior, though does incur some type:ignore comments because of sub/superclass interactions
@oscargus oscargus added this to the v3.8.0 milestone May 23, 2023
@timhoffm timhoffm merged commit 7d7f6da into matplotlib:main May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants