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


##########
airflow/cli/commands/task_command.py:
##########
@@ -212,7 +212,8 @@ def _run_task_by_selected_method(
     - as raw task
     - by executor
     """
-    assert not isinstance(ti, TaskInstancePydantic), "Wait for AIP-44 
implementation to complete"
+    if isinstance(ti, TaskInstancePydantic):

Review Comment:
   This can use a `TYPE_CHECKING` check to avoid runtime overhead too



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