Skip to content

Commit

Permalink
fix the fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
0xabu committed Jul 30, 2023
1 parent 4319024 commit 3868633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdfannots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def _mkannotation(
rgb: typ.Optional[RGB] = None
color = pa.get('C')
if color is not None:
if isinstance(color, list)
if (isinstance(color, list)
and len(color) == 3
and all(isinstance(e, float) and 0 <= e <= 1 for e in color):
and all(isinstance(e, float) and 0 <= e <= 1 for e in color)):
rgb = RGB(*color)
else:
logger.warning("Invalid color %s in annotation on %s", color, page)
Expand Down

0 comments on commit 3868633

Please sign in to comment.