ashb commented on a change in pull request #20163:
URL: https://github.com/apache/airflow/pull/20163#discussion_r765813838



##########
File path: airflow/utils/db.py
##########
@@ -882,12 +883,12 @@ def _move_dangling_task_data_to_new_table(session, 
source_table: "Table", target
     _move_dangling_table(session, source_table, target_table_name, 
where_clause)
 
 
-def check_task_tables_without_matching_dagruns(session) -> Iterable[str]:
+def check_task_tables_without_matching_dagruns(session: Session) -> 
Iterable[str]:
     import sqlalchemy.schema
     from sqlalchemy import and_, outerjoin
 
     metadata = sqlalchemy.schema.MetaData(session.bind)
-    models_to_dagrun = [TaskInstance, TaskReschedule]
+    models_to_dagrun: List[Any] = [TaskInstance, TaskReschedule]

Review comment:
       👍🏻 Also, as this isn't called anywhere from outside of this module it 
doesn't impact the typing of the rest of the code base.




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