Skip to content

Commit

Permalink
MAINT: Destination.color returns ArrayObject instead of tuple as fall…
Browse files Browse the repository at this point in the history
…back (#1119)
  • Loading branch information
mtd91429 committed Jul 16, 2022
1 parent dd2d69a commit ed5ecd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyPDF2/generic.py
Expand Up @@ -1889,9 +1889,9 @@ def bottom(self) -> Optional[FloatObject]:
return self.get("/Bottom", None)

@property
def color(self) -> Optional[tuple]:
def color(self) -> Optional[ArrayObject]:
"""Read-only property accessing the color in (R, G, B) with values 0.0-1.0"""
return self.get("/C", [FloatObject(0), FloatObject(0), FloatObject(0)])
return self.get("/C", ArrayObject([FloatObject(0), FloatObject(0), FloatObject(0)]))

@property
def font_format(self) -> Optional[OutlineFontFlag]:
Expand Down

0 comments on commit ed5ecd9

Please sign in to comment.