From 6e45c13e04ba28e4158e7a5cf47e9974a0afb99c Mon Sep 17 00:00:00 2001 From: lars-reimann Date: Mon, 20 Mar 2023 21:16:00 +0000 Subject: [PATCH] style: apply automated linter fixes --- tests/safeds/ml/test_util_sklearn.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/safeds/ml/test_util_sklearn.py b/tests/safeds/ml/test_util_sklearn.py index 10eab1772..f7ae6aa78 100644 --- a/tests/safeds/ml/test_util_sklearn.py +++ b/tests/safeds/ml/test_util_sklearn.py @@ -11,19 +11,13 @@ def test_predict_should_not_warn_about_feature_names() -> None: """ training_set = SupervisedDataset( - Table({ - "a": [1, 2, 3], - "b": [2, 4, 6] - }), - target_column="b" + Table({"a": [1, 2, 3], "b": [2, 4, 6]}), target_column="b" ) model = LinearRegression() model.fit(training_set) - test_set = Table({ - "a": [4, 5, 6] - }) + test_set = Table({"a": [4, 5, 6]}) # No warning should be emitted with warnings.catch_warnings():