sunank200 commented on code in PR #37101:
URL: https://github.com/apache/airflow/pull/37101#discussion_r1500291702
##########
airflow/datasets/__init__.py:
##########
@@ -73,6 +73,12 @@ def __eq__(self, other):
def __hash__(self):
return hash(self.uri)
+ def __or__(self, other: Dataset):
Review Comment:
Changed it to `BaseDatasetEventInput`
##########
airflow/datasets/__init__.py:
##########
@@ -106,8 +112,90 @@ class DatasetAny(_DatasetBooleanCondition):
agg_func = any
+ def __init__(self, *objects: Dataset | DatasetAny | DatasetAll) -> None:
+ """Initialize with one or more Dataset, DatasetAny, or DatasetAll
instances."""
+ super().__init__(*objects)
+
+ def __or__(self, other):
Review Comment:
Changed it to `BaseDatasetEventInput`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]