-
-
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
[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 <donbarbos@proton.me>
This comment has been minimized.
This comment has been minimized.
@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)
@@ -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: ... |
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.
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>
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Closes: #13869