uranusjr commented on a change in pull request #21815:
URL: https://github.com/apache/airflow/pull/21815#discussion_r816066090
##########
File path: airflow/models/mappedoperator.py
##########
@@ -284,7 +285,10 @@ def get_serialized_fields(cls):
@staticmethod
@cache
def deps_for(operator_class: Type["BaseOperator"]) -> FrozenSet[BaseTIDep]:
- return operator_class.deps | {MappedTaskIsExpanded()}
+ operator_deps = operator_class.deps
+ if not isinstance(operator_deps, collections.abc.Set):
+ raise UnmappableOperator(f"cannot map operator;
f{operator_class}.deps must be a set")
Review comment:
Anything suggestion on wording? I’m struggling to come up with a
succinct description.
--
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]