ashb commented on code in PR #45627:
URL: https://github.com/apache/airflow/pull/45627#discussion_r1923388660


##########
airflow/api_fastapi/core_api/datamodels/tasks.py:
##########
@@ -90,7 +79,7 @@ class TaskResponse(BaseModel):
     @classmethod
     def validate_model(cls, task: Any) -> Any:
         task.__dict__.update(
-            {"class_ref": _get_class_ref(task), "is_mapped": isinstance(task, 
MappedOperator)}
+            {"class_ref": _get_class_ref(task), "is_mapped": getattr(task, 
"_is_mapped", False)}

Review Comment:
   Good shout. I'll add a property on AbstractOp so we can make this 
`task.is_mapped` now I think.



-- 
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]

Reply via email to