potiuk commented on code in PR #33527:
URL: https://github.com/apache/airflow/pull/33527#discussion_r1299837965
##########
airflow/models/renderedtifields.py:
##########
@@ -201,11 +209,11 @@ def delete_old_records(
:param num_to_keep: Number of Records to keep
:param session: SqlAlchemy Session
"""
- from airflow.models.dagrun import DagRun
-
if num_to_keep <= 0:
return
+ from airflow.models.dagrun import DagRun
Review Comment:
(and of course the problem is with type annotations and TYPE_CHECKING -
would also be nice to solve that one as the TYPE_CHECKING is really a hack as
opposed to local imports)
--
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]