Skip to content

Commit d4df20d

Browse files
authored
STY: Remove boolean value comparison (#2779)
PEP 8 recommendation.
1 parent 4bd54bd commit d4df20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pypdf/annotations/_markup_annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def __init__(
104104
self[NameObject("/Rect")] = RectangleObject(rect)
105105

106106
font_str = "font: "
107-
if bold is True:
107+
if bold:
108108
font_str = f"{font_str}bold "
109-
if italic is True:
109+
if italic:
110110
font_str = f"{font_str}italic "
111111
font_str = f"{font_str}{font} {font_size}"
112112
font_str = f"{font_str};text-align:left;color:#{font_color}"

0 commit comments

Comments
 (0)