diff --git a/src/safeds/data/tabular/containers/_row.py b/src/safeds/data/tabular/containers/_row.py index 63c763963..b4d4c53ca 100644 --- a/src/safeds/data/tabular/containers/_row.py +++ b/src/safeds/data/tabular/containers/_row.py @@ -1,6 +1,5 @@ from __future__ import annotations -import copy import functools from collections.abc import Callable, Mapping from typing import TYPE_CHECKING, Any @@ -155,7 +154,7 @@ def __contains__(self, obj: Any) -> bool: """ return isinstance(obj, str) and self.has_column(obj) - def __eq__(self, other: Any) -> bool: + def __eq__(self, other: object) -> bool: """ Check whether this row is equal to another object. @@ -531,18 +530,3 @@ def _repr_html_(self) -> str: The generated HTML. """ return self._data.to_html(max_rows=1, max_cols=self._data.shape[1], notebook=True) - - # ------------------------------------------------------------------------------------------------------------------ - # Helpers - # ------------------------------------------------------------------------------------------------------------------ - - def _copy(self) -> Row: - """ - Return a copy of this row. - - Returns - ------- - copy : Row - The copy of this row. - """ - return copy.deepcopy(self) diff --git a/tests/safeds/data/tabular/containers/test_row.py b/tests/safeds/data/tabular/containers/test_row.py index eb3ff9033..9f4e6d774 100644 --- a/tests/safeds/data/tabular/containers/test_row.py +++ b/tests/safeds/data/tabular/containers/test_row.py @@ -514,18 +514,6 @@ def test_should_contain_td_element_for_each_value(self, row: Row) -> None: assert f"