Dev-iL commented on code in PR #57862:
URL: https://github.com/apache/airflow/pull/57862#discussion_r2495644468


##########
airflow-core/src/airflow/models/taskmap.py:
##########
@@ -265,7 +267,11 @@ def expand_mapped_task(
             TaskInstance.run_id == run_id,
             TaskInstance.map_index >= total_expanded_ti_count,
         )
-        query = with_row_locks(query, of=TaskInstance, session=session, 
skip_locked=True)
+        query = select(TaskInstance)
+        query = cast(

Review Comment:
   Is there a way to avoid cast? SQLA2 offers quite a few new typehints. 
Perhaps one that's less specific could work here.



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