From 509bc02c81a7f08604beb3c4ee724eb957a107aa Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Wed, 17 Apr 2024 16:08:50 +0200 Subject: [PATCH] style: fix mypy error --- src/safeds/data/image/containers/_empty_image_list.py | 2 +- src/safeds/data/tabular/containers/_time_series.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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.