josh-fell commented on a change in pull request #17099:
URL: https://github.com/apache/airflow/pull/17099#discussion_r672770679
##########
File path: airflow/models/baseoperator.py
##########
@@ -1546,13 +1546,17 @@ def inherits_from_dummy_operator(self):
return getattr(self, '_is_dummy', False)
-def chain(*tasks: Union[BaseOperator, "XComArg", Sequence[Union[BaseOperator,
"XComArg"]]]):
+def chain(
+ *tasks: Union[
+ BaseOperator, "XComArg", EdgeModifier, Sequence[Union[BaseOperator,
"XComArg", EdgeModifier]]
Review comment:
Brilliant. I'm sure there will be other types that will be "chainable"
in the future. I agree the annotations are beginning to become unwieldy.
--
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]