Skip to content

Commit 87d8097

Browse files
authored
STY: Unpack list (#3128)
1 parent 4bfde9f commit 87d8097

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pypdf/_doc_common.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,7 @@ def _build_destination(
962962
page = NullObject()
963963
return Destination(title, page, Fit.fit())
964964
else:
965-
page, typ = array[0:2] # type: ignore
966-
array = array[2:]
965+
page, typ, *array = array # type: ignore
967966
try:
968967
return Destination(title, page, Fit(fit_type=typ, fit_args=array)) # type: ignore
969968
except PdfReadError:

0 commit comments

Comments
 (0)