From a39368b10edf4b4fe786069f82390f45bd59c257 Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:45:00 +0000 Subject: [PATCH] style: apply automated linter fixes --- src/safeds/ml/nn/layers/_forward_layer.py | 6 +++++- .../data/tabular/plotting/test_moving_average_plot.py | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/safeds/ml/nn/layers/_forward_layer.py b/src/safeds/ml/nn/layers/_forward_layer.py index 1252fb39c..13478943b 100644 --- a/src/safeds/ml/nn/layers/_forward_layer.py +++ b/src/safeds/ml/nn/layers/_forward_layer.py @@ -33,7 +33,11 @@ class ForwardLayer(Layer): If the given activation function does not exist """ - def __init__(self, neuron_count: int | Choice[int], overwrite_activation_function: Literal["sigmoid", "relu", "softmax", "none", "notset"] = "notset") -> None: + def __init__( + self, + neuron_count: int | Choice[int], + overwrite_activation_function: Literal["sigmoid", "relu", "softmax", "none", "notset"] = "notset", + ) -> None: if isinstance(neuron_count, Choice): for val in neuron_count: _check_bounds("neuron_count", val, lower_bound=_ClosedBound(1)) diff --git a/tests/safeds/data/tabular/plotting/test_moving_average_plot.py b/tests/safeds/data/tabular/plotting/test_moving_average_plot.py index f0ea1a711..b99855108 100644 --- a/tests/safeds/data/tabular/plotting/test_moving_average_plot.py +++ b/tests/safeds/data/tabular/plotting/test_moving_average_plot.py @@ -57,7 +57,6 @@ datetime.date(2022, 1, 15), datetime.date(2022, 1, 16), datetime.date(2022, 1, 17), - ], "A": [10, 5, 20, 2, 15, 1, 10, 5, 20], },