From 5c80f7f7fc5c7af01835fcc3721586a7135f7332 Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Thu, 29 Aug 2024 19:32:19 +0000 Subject: [PATCH] style: apply automated linter fixes --- .../ml/classical/regression/test_linear_regressor.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/safeds/ml/classical/regression/test_linear_regressor.py b/tests/safeds/ml/classical/regression/test_linear_regressor.py index cc03a8cc7..0334e58ea 100644 --- a/tests/safeds/ml/classical/regression/test_linear_regressor.py +++ b/tests/safeds/ml/classical/regression/test_linear_regressor.py @@ -117,7 +117,7 @@ def test_should_raise_if_alpha_out_of_bounds_ridge(self, alpha: float | Choice[f def test_should_assert_alpha_is_set_correctly(self) -> None: alpha = 0.69 - assert LinearRegressor.Penalty.ridge(alpha=alpha).alpha == alpha # type: ignore[attr-defined] + assert LinearRegressor.Penalty.ridge(alpha=alpha).alpha == alpha # type: ignore[attr-defined] class TestLasso: def test_str(self) -> None: @@ -131,7 +131,7 @@ def test_should_raise_if_alpha_out_of_bounds_lasso(self, alpha: float | Choice[f def test_should_assert_alpha_is_set_correctly(self) -> None: alpha = 0.69 - assert LinearRegressor.Penalty.lasso(alpha=alpha).alpha == alpha # type: ignore[attr-defined] + assert LinearRegressor.Penalty.lasso(alpha=alpha).alpha == alpha # type: ignore[attr-defined] class TestElasticNet: def test_str(self) -> None: @@ -156,6 +156,5 @@ def test_should_assert_alpha_is_set_correctly(self) -> None: alpha = 0.69 lasso_ratio = 0.96 elastic_pen = LinearRegressor.Penalty.elastic_net(alpha=alpha, lasso_ratio=lasso_ratio) - assert elastic_pen.alpha == alpha # type: ignore[attr-defined] - assert elastic_pen.lasso_ratio == lasso_ratio # type: ignore[attr-defined] - + assert elastic_pen.alpha == alpha # type: ignore[attr-defined] + assert elastic_pen.lasso_ratio == lasso_ratio # type: ignore[attr-defined]