Skip to content

Commit 3643a65

Browse files
pre-commit-ci[bot]WhyNotHugo
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 869b5c2 commit 3643a65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

barcode/writer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def calculate_size(self, modules_per_line, number_of_lines):
117117
:rtype: Tuple
118118
"""
119119
width = 2 * self.quiet_zone + modules_per_line * self.module_width
120-
height = self.margin_bottom + self.margin_top + self.module_height * number_of_lines
120+
height = (
121+
self.margin_bottom + self.margin_top + self.module_height * number_of_lines
122+
)
121123
number_of_text_lines = len(self.text.splitlines())
122124
if self.font_size and self.text:
123125
height += (

0 commit comments

Comments
 (0)