Skip to content

Conversation

@rafakatri
Copy link

PR summary

Closes #30669

Fix type annotation for Text.fontproperties in text.pyi.

Change import from matplotlib.path.Path to pathlib.Path so that fontproperties correctly accepts filesystem paths. This resolves type checker errors while keeping runtime behavior unchanged.

PR checklist

@story645 story645 added this to the v3.10.8 milestone Oct 22, 2025
@timhoffm timhoffm merged commit 7266008 into matplotlib:main Oct 22, 2025
36 of 38 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Oct 22, 2025
@timhoffm
Copy link
Member

timhoffm commented Oct 22, 2025

Thanks @rafakatri, and congratulations on your first contribution to Matplotlib! 🎉

QuLogic added a commit that referenced this pull request Oct 22, 2025
…672-on-v3.10.x

Backport PR #30672 on branch v3.10.x (Use pathlib.Path instead of matplotlib.path.Path in text.pyi)
ilakkmanoharan pushed a commit to ilakkmanoharan/matplotlib that referenced this pull request Oct 30, 2025
Use pathlib.Path instead of matplotlib.path.Path in text.pyi
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.

[Bug]: Type hint for fontproperties keyword in text.pyi is wrong

4 participants