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 May 5, 2023
1 parent 3879f33 commit cf554b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/safeds/ml/classical/classification/_classifier.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from __future__ import annotations

from abc import ABC, abstractmethod
from typing import TYPE_CHECKING

from sklearn.metrics import accuracy_score as sk_accuracy_score

from safeds.data.tabular.containers import Table, TaggedTable
from safeds.ml.exceptions import UntaggedTableError

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from typing import Any


class Classifier(ABC):
"""Abstract base class for all classifiers."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ def test_should_compare_result_with_different_types(self) -> None:

assert DummyClassifier().f1_score(table, 1) == pytest.approx(0.6666667)


def test_should_return_1_if_never_expected_or_predicted_to_be_positive(self) -> None:
table = Table.from_dict(
{
Expand Down

0 comments on commit cf554b9

Please sign in to comment.