PdfParser: Fix typing in read_prev_trailer

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
danigm 2026-05-13 11:37:39 +02:00 committed by GitHub
parent 78ee80a6fd
commit f0f67f8cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -692,7 +692,7 @@ class PdfParser:
self.read_prev_trailer(self.trailer_dict[b"Prev"])
def read_prev_trailer(
self, xref_section_offset: int, processed_offsets: list[int] = None
self, xref_section_offset: int, processed_offsets: list[int] | None = None
) -> None:
assert self.buf is not None
trailer_offset = self.read_xref_table(xref_section_offset=xref_section_offset)