[fpdf2] Add actual NamedTuple defaults (#12768)

This commit is contained in:
Sebastian Rittau
2024-10-10 12:24:26 +02:00
committed by GitHub
parent 3f04e4d65b
commit 98f3e5772d
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ class ToCPlaceholder(NamedTuple):
render_function: Callable[[FPDF, Any], object]
start_page: int
y: int
pages: int = ...
pages: int = 1
def get_page_format(format: _Format | tuple[float, float], k: float | None = None) -> tuple[float, float]: ...

View File

@@ -10,7 +10,7 @@ class OutlineSection(NamedTuple):
level: int
page_number: int
dest: Destination
struct_elem: StructElem | None = ...
struct_elem: StructElem | None = None
class OutlineItemDictionary(PDFObject):
title: PDFString