Spaces:
Sleeping
Sleeping
Commit ·
42b564f
1
Parent(s): 96e2bc4
Add type hint for the fetch method
Browse files- agents/deals.py +1 -1
agents/deals.py
CHANGED
|
@@ -89,7 +89,7 @@ class ScrapedDeal:
|
|
| 89 |
return f"Title: {self.title}\n\nDetails: {self.details.strip()}\n\nFeatures: {self.features.strip()}\n\nURL: {self.url}"
|
| 90 |
|
| 91 |
@classmethod
|
| 92 |
-
def fetch(cls, show_progress: bool = False):
|
| 93 |
"""
|
| 94 |
Retrieve all deals from the selected RSS feeds
|
| 95 |
"""
|
|
|
|
| 89 |
return f"Title: {self.title}\n\nDetails: {self.details.strip()}\n\nFeatures: {self.features.strip()}\n\nURL: {self.url}"
|
| 90 |
|
| 91 |
@classmethod
|
| 92 |
+
def fetch(cls, show_progress: bool = False) -> List["ScrapedDeal"]: #forward reference
|
| 93 |
"""
|
| 94 |
Retrieve all deals from the selected RSS feeds
|
| 95 |
"""
|