Skip to content

Commit

Permalink
STY: Remove boolean value comparison (#2779)
Browse files Browse the repository at this point in the history
PEP 8 recommendation.
  • Loading branch information
j-t-1 authored Jul 31, 2024
1 parent 4bd54bd commit d4df20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/annotations/_markup_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def __init__(
self[NameObject("/Rect")] = RectangleObject(rect)

font_str = "font: "
if bold is True:
if bold:
font_str = f"{font_str}bold "
if italic is True:
if italic:
font_str = f"{font_str}italic "
font_str = f"{font_str}{font} {font_size}"
font_str = f"{font_str};text-align:left;color:#{font_color}"
Expand Down

0 comments on commit d4df20d

Please sign in to comment.