diff --git a/src/safeds/data/image/containers/_image.py b/src/safeds/data/image/containers/_image.py index d37119e3e..901d3b9fa 100644 --- a/src/safeds/data/image/containers/_image.py +++ b/src/safeds/data/image/containers/_image.py @@ -313,7 +313,9 @@ def add_gaussian_noise(self, standard_deviation: float) -> Image: # noinspection PyTypeChecker image_as_array = np.asarray(self._image) - noisy_image_as_array = random_noise(image_as_array, mode="gaussian", var=standard_deviation**2, rng=42, clip=True) + noisy_image_as_array = random_noise( + image_as_array, mode="gaussian", var=standard_deviation**2, rng=42, clip=True, + ) noisy_image = PIL.Image.fromarray(np.uint8(255 * noisy_image_as_array)) image_copy = copy.deepcopy(self)