uranusjr commented on code in PR #41264:
URL: https://github.com/apache/airflow/pull/41264#discussion_r1705340564


##########
airflow/datasets/__init__.py:
##########
@@ -294,6 +297,9 @@ def as_expression(self) -> Any:
     def iter_datasets(self) -> Iterator[tuple[str, Dataset]]:
         yield self.uri, self
 
+    def iter_dataset_aliases(self) -> Iterator[DatasetAlias]:
+        raise StopIteration()

Review Comment:
   Alternatively I think this would work
   
   ```python
   def iter_....:
       return
       yield  # Hack to make Python turn this into a generator function.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to