Skip to content

[fpdf2] FPDF.add_font() accepts PurePaths #9699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Feb 9, 2023

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

self,
family: str | None = None,
style: _FontStyle = "",
fname: str | PurePath | None = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it technically accepts "PathLike objects with a reasonable str()", but str | PurePath is a good enough approximation.

@JelleZijlstra JelleZijlstra merged commit ad1e2be into python:main Feb 9, 2023
@srittau srittau deleted the fpdf2-path branch February 9, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants