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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

[fpdf2] Update to 2.8.3 #13871

wants to merge 4 commits into from

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

Copy link
Contributor

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

@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)

Comment on lines +93 to +98
start_circle_x: int,
start_circle_y: int,
start_circle_radius: int,
end_circle_x: int,
end_circle_y: int,
end_circle_radius: int,
Copy link
Contributor

Choose a reason for hiding this comment

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

forgot mark it here:

Suggested change
start_circle_x: int,
start_circle_y: int,
start_circle_radius: int,
end_circle_x: int,
end_circle_y: int,
end_circle_radius: int,
start_circle_x: float,
start_circle_y: float,
start_circle_radius: float,
end_circle_x: float,
end_circle_y: float,
end_circle_radius: float,

@@ -180,6 +210,17 @@ class FPDF(GraphicsStateMixin):
@property
def page_mode(self) -> PageMode: ...
Copy link
Contributor

@donBarbos donBarbos Apr 24, 2025

Choose a reason for hiding this comment

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

it's not your changes, but looks like we can add missing method:

Suggested change
def page_mode(self) -> PageMode: ...
def page_mode(self) -> PageMode: ...
@page_mode.setter
def page_mode(self, page_mode: PageMode) -> None: ...

@@ -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: ...

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