[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-05-26 22:25:13 +00:00
parent 2c4a6e1179
commit 2ee3cef50e

View File

@ -184,7 +184,7 @@ class ImageDraw:
def circle(self, xy: Coords, radius, fill=None, outline=None, width=1) -> None:
"""Draw a circle given center coordinates and a radius."""
ink, fill = self._getink(outline, fill)
ellipse_xy = (xy[0]-radius, xy[1]-radius, xy[0]+radius, xy[1]+radius)
ellipse_xy = (xy[0] - radius, xy[1] - radius, xy[0] + radius, xy[1] + radius)
if fill is not None:
self.draw.draw_ellipse(ellipse_xy, fill, 1)
if ink is not None and ink != fill and width != 0: