diff --git a/src/safeds/data/image/containers/_empty_image_list.py b/src/safeds/data/image/containers/_empty_image_list.py index d15c062b9..799ecd670 100644 --- a/src/safeds/data/image/containers/_empty_image_list.py +++ b/src/safeds/data/image/containers/_empty_image_list.py @@ -41,7 +41,7 @@ class _EmptyImageList(ImageList): | [from_files][safeds.data.image.containers._image_list.ImageList.from_files] | Create an ImageList from a directory or a list of files. | """ - _instance: _EmptyImageList | None = None + _instance = None @staticmethod def _warn_empty_image_list() -> None: diff --git a/src/safeds/data/tabular/containers/_time_series.py b/src/safeds/data/tabular/containers/_time_series.py index 739daddbb..9be5b81e7 100644 --- a/src/safeds/data/tabular/containers/_time_series.py +++ b/src/safeds/data/tabular/containers/_time_series.py @@ -269,6 +269,8 @@ def __init__( if len(self.target._data) == 0: self.target._data = pd.Series(name=target_name) + self._data = _data._data + def __eq__(self, other: object) -> bool: """ Compare two time series instances.