-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[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
base: main
Are you sure you want to change the base?
[fpdf2] Update to 2.8.3 #13871
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this 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 <[email protected]>
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
@donBarbos If you have the time, I'd be happy about a review of this PR. |
There was a problem hiding this 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)
start_circle_x: int, | ||
start_circle_y: int, | ||
start_circle_radius: int, | ||
end_circle_x: int, | ||
end_circle_y: int, | ||
end_circle_radius: int, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot mark it here:
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: ... |
There was a problem hiding this comment.
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:
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: ... |
There was a problem hiding this comment.
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:
def int2roman(n: int | None) -> str: ... | |
@overload | |
def int2roman(n: None) -> Literal[""]: ... | |
@overload | |
def int2roman(n: int) -> str: ... |
Closes: #13869