From 802af5d08153c38e8e6f2c37552bd1b6ff965852 Mon Sep 17 00:00:00 2001 From: Adam Crawford Date: Mon, 30 Oct 2023 13:56:22 -0700 Subject: [PATCH] Forward reference EEDLImage to pass linting check. --- eedl/image.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eedl/image.py b/eedl/image.py index 47d70c8..3dd66f4 100644 --- a/eedl/image.py +++ b/eedl/image.py @@ -81,7 +81,7 @@ def __init__(self) -> None: self.log_file: Optional[io.TextIOWrapper] = None # the open log file handle self.raise_errors: bool = True - def add(self, image: EEDLImage) -> None: + def add(self, image: "EEDLImage") -> None: """ Adds an Earth Engine image to the list of Earth Engine images. @@ -94,7 +94,7 @@ def add(self, image: EEDLImage) -> None: self.images.append(image) @property - def incomplete_tasks(self) -> List[EEDLImage]: + def incomplete_tasks(self) -> List["EEDLImage"]: """ List of Earth Engine images that have not been completed yet. @@ -108,7 +108,7 @@ def incomplete_tasks(self) -> List[EEDLImage]: return [image for image in self.images if image.last_task_status['state'] in self.INCOMPLETE_STATUSES] @property - def complete_tasks(self) -> List[EEDLImage]: + def complete_tasks(self) -> List["EEDLImage"]: """ List of Earth Engine images. @@ -118,7 +118,7 @@ def complete_tasks(self) -> List[EEDLImage]: return [image for image in self.images if image.last_task_status['state'] in self.COMPLETE_STATUSES + self.FAILED_STATUSES] @property - def failed_tasks(self) -> List[EEDLImage]: + def failed_tasks(self) -> List["EEDLImage"]: """ List of Earth Engine images that have either been cancelled or that have failed @@ -128,7 +128,7 @@ def failed_tasks(self) -> List[EEDLImage]: return [image for image in self.images if image.last_task_status['state'] in self.FAILED_STATUSES] @property - def downloadable_tasks(self) -> List[EEDLImage]: + def downloadable_tasks(self) -> List["EEDLImage"]: """ List of Earth Engine images that have not been cancelled or have failed.