Skip to content

Commit eb4d170

Browse files
authored
[fpdf2] Restore string default values (#9562)
Cf. #9546
1 parent 4fea314 commit eb4d170

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stubs/fpdf2/fpdf/fpdf.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ class FPDF:
301301
def set_font_size(self, size: float) -> None: ...
302302
def set_char_spacing(self, spacing: float) -> None: ...
303303
def set_stretching(self, stretching: float) -> None: ...
304-
def add_link(self, y: float = 0, x: float = 0, page: int = -1, zoom: float | Literal["null"] = ...) -> int: ...
305-
def set_link(self, link, y: float = 0, x: float = 0, page: int = -1, zoom: float | Literal["null"] = ...) -> None: ...
304+
def add_link(self, y: float = 0, x: float = 0, page: int = -1, zoom: float | Literal["null"] = "null") -> int: ...
305+
def set_link(self, link, y: float = 0, x: float = 0, page: int = -1, zoom: float | Literal["null"] = "null") -> None: ...
306306
def link(
307307
self, x: float, y: float, w: float, h: float, link: str | int, alt_text: str | None = ..., border_width: int = ...
308308
) -> AnnotationDict: ...
@@ -435,8 +435,8 @@ class FPDF:
435435
y: float | None = None,
436436
w: float = 0,
437437
h: float = 0,
438-
type: str = ...,
439-
link: str = ...,
438+
type: str = "",
439+
link: str = "",
440440
title: str | None = None,
441441
alt_text: str | None = None,
442442
dims: tuple[float, float] | None = None,

0 commit comments

Comments
 (0)