kaxil commented on code in PR #56660:
URL: https://github.com/apache/airflow/pull/56660#discussion_r2435768982
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -2346,7 +2346,7 @@ def _create_orm_dagrun(
run.dag = dag
# create the associated task instances
# state is None at the moment of creation
- run.verify_integrity(session=session, dag_version_id=dag_version.id)
+ run.verify_integrity(session=session, dag_version_id=dag_version.id if
dag_version else None)
Review Comment:
Is this not failing MyPy? `dag_version_id` has a `UUIDType` only so
technically does not accept None
--
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]