Skip to content

[fpdf2] Update to 2.8.3 #13871

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 5 commits into from
Apr 25, 2025
Merged

[fpdf2] Update to 2.8.3 #13871

merged 5 commits into from
Apr 25, 2025

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Apr 23, 2025

Closes: #13869

@srittau srittau closed this Apr 23, 2025

This comment has been minimized.

@srittau srittau reopened this Apr 23, 2025

This comment has been minimized.

Copy link
Contributor

@donBarbos donBarbos left a comment

Choose a reason for hiding this comment

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

looks like this can be specified as well

Co-authored-by: Semyon Moroz <donbarbos@proton.me>

This comment has been minimized.

@srittau
Copy link
Collaborator Author

srittau commented Apr 24, 2025

@donBarbos If you have the time, I'd be happy about a review of this PR.

Copy link
Contributor

@donBarbos donBarbos left a comment

Choose a reason for hiding this comment

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

Thank you for the review suggestion. I have no objections, only suggestions for improvement (as it seems to me)

@@ -26,7 +26,7 @@ def convert_unit(

ROMAN_NUMERAL_MAP: Final[tuple[tuple[str, int], ...]]

def int2roman(n: int) -> str: ...
def int2roman(n: int | None) -> str: ...
Copy link
Contributor

Choose a reason for hiding this comment

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

if you want we can use overload but then we will have to import overload:

Suggested change
def int2roman(n: int | None) -> str: ...
@overload
def int2roman(n: None) -> Literal[""]: ...
@overload
def int2roman(n: int) -> str: ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure whether that's worth it as it probably doesn't make much difference in practice. (And the current annotation is not wrong.)

Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Copy link
Contributor

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

@srittau srittau merged commit dd85323 into python:main Apr 25, 2025
43 checks passed
@srittau srittau deleted the fpdf-2.8.3 branch April 25, 2025 10:16
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