mirror of
https://github.com/lepture/captcha.git
synced 2026-03-13 09:43:22 +08:00
chore: lint errors
This commit is contained in:
@@ -97,7 +97,11 @@ class ImageCaptcha:
|
||||
number -= 1
|
||||
return image
|
||||
|
||||
def _draw_character(self, c: str, draw: ImageDraw, color: ColorTuple) -> Image:
|
||||
def _draw_character(
|
||||
self,
|
||||
c: str,
|
||||
draw: ImageDraw,
|
||||
color: ColorTuple) -> Image:
|
||||
font = random.choice(self.truefonts)
|
||||
_, _, w, h = draw.textbbox((1, 1), c, font=font)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user