Skip to content

Commit

Permalink
[fpdf2] fix link type to support internal links (#12695)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoettle authored Sep 26, 2024
1 parent 5a89c48 commit 283ff95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stubs/fpdf2/fpdf/fpdf.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class FPDF(GraphicsStateMixin):
ln: int | Literal["DEPRECATED"] = "DEPRECATED",
align: str | Align = ...,
fill: bool = False,
link: str = "",
link: str | int = "",
center: bool = False,
markdown: bool = False,
new_x: XPos | str = ...,
Expand All @@ -467,7 +467,7 @@ class FPDF(GraphicsStateMixin):
align: str | Align = ...,
fill: bool = False,
split_only: bool = False,
link: str = "",
link: str | int = "",
ln: int | Literal["DEPRECATED"] = "DEPRECATED",
max_line_height: float | None = None,
markdown: bool = False,
Expand All @@ -481,7 +481,7 @@ class FPDF(GraphicsStateMixin):
padding: int = 0,
): ...
def write(
self, h: float | None = None, text: str = "", link: str = "", print_sh: bool = False, wrapmode: WrapMode = ...
self, h: float | None = None, text: str = "", link: str | int = "", print_sh: bool = False, wrapmode: WrapMode = ...
) -> bool: ...
def text_columns(
self,
Expand All @@ -507,7 +507,7 @@ class FPDF(GraphicsStateMixin):
w: float = 0,
h: float = 0,
type: str = "",
link: str = "",
link: str | int = "",
title: str | None = None,
alt_text: str | None = None,
dims: tuple[float, float] | None = None,
Expand Down

0 comments on commit 283ff95

Please sign in to comment.