Skip to content

Commit 6d023db

Browse files
committed
Ruff autoformat
1 parent 8c325b5 commit 6d023db

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

qrcode/image/styles/moduledrawers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# For backwards compatibility, importing the PIL drawers here.
22
try:
33
from .pil import CircleModuleDrawer # noqa: F401
4-
from .pil import GappedCircleModuleDrawer # noqa: F401
4+
from .pil import GappedCircleModuleDrawer # noqa: F401
55
from .pil import GappedSquareModuleDrawer # noqa: F401
66
from .pil import HorizontalBarsDrawer # noqa: F401
77
from .pil import RoundedModuleDrawer # noqa: F401

qrcode/image/styles/moduledrawers/pil.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def initialize(self, *args, **kwargs):
117117
(0, 0, fake_size, fake_size), fill=self.img.paint_color
118118
)
119119
smaller_size = int(self.size_ratio * box_size)
120-
self.circle = self.circle.resize((smaller_size, smaller_size), Image.Resampling.LANCZOS)
120+
self.circle = self.circle.resize(
121+
(smaller_size, smaller_size), Image.Resampling.LANCZOS
122+
)
121123

122124
def drawrect(self, box, is_active: bool):
123125
if is_active:

0 commit comments

Comments
 (0)