Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jun 16, 2023
1 parent bc128d0 commit 515a4a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/safeds/data/image/containers/_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def _repr_png_(self) -> bytes | None:
self._image.save(buffer, format="png")
buffer.seek(0)
return buffer.read()

# ------------------------------------------------------------------------------------------------------------------
# Transformations
# ------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -234,7 +235,7 @@ def convert_to_grayscale(self) -> Image:
grayscale_image = self._image.convert("L")
grayscale_image.save(data, format=self._format.value)
return Image(data, self._format)

def crop(self, x: int, y: int, width: int, height: int) -> Image:
"""
Return an image that has been cropped to a given bounding rectangle.
Expand Down

0 comments on commit 515a4a0

Please sign in to comment.