Skip to content

Commit

Permalink
Forward reference EEDLImage to pass linting check.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamJCrawford committed Oct 30, 2023
1 parent da77bdf commit 802af5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eedl/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 802af5d

Please sign in to comment.