X Tutup
Skip to content

Use pathlib.Path instead of matplotlib.path.Path in text.pyi#30672

Merged
timhoffm merged 1 commit intomatplotlib:mainfrom
rafakatri:fix_path_lib
Oct 22, 2025
Merged

Use pathlib.Path instead of matplotlib.path.Path in text.pyi#30672
timhoffm merged 1 commit intomatplotlib:mainfrom
rafakatri:fix_path_lib

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
andreas16700 added a commit to andreas16700/matplotlib that referenced this pull request Jan 26, 2026
PR matplotlib#30672: Use pathlib.Path instead of matplotlib.path.Path in text.pyi

Files changed:
- lib/matplotlib/text.pyi (1 line - type stub)

This is a type stub fix only (for type checkers).
ezmon should not select any tests (type stubs don't affect runtime).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
andreas16700 added a commit to andreas16700/matplotlib that referenced this pull request Jan 26, 2026
Reset to upstream 7266008 (PR matplotlib#30672)
- Added -n auto for parallel test execution (matches upstream)
- Added --ezmon-noselect to force all tests while collecting fingerprints
- Added --timeout=300 --maxfail=50 to match upstream
- Discarded Runs 6-12 (codebase parity not verified)

This establishes a proper baseline with parallel execution isolation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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

X Tutup