Skip to content

Commit

Permalink
STY: Unpack using * (#2954)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-1 authored Nov 19, 2024
1 parent 5587414 commit ad5f3ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pypdf/_doc_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,7 @@ def open_destination(
return create_string_object(oa)
elif isinstance(oa, ArrayObject):
try:
page, typ = oa[0:2]
array = oa[2:]
page, typ, *array = oa
fit = Fit(typ, tuple(array))
return Destination("OpenAction", page, fit)
except Exception as exc:
Expand Down

0 comments on commit ad5f3ef

Please sign in to comment.