turbaszek commented on a change in pull request #10729:
URL: https://github.com/apache/airflow/pull/10729#discussion_r485390650
##########
File path: airflow/models/taskinstance.py
##########
@@ -1871,3 +1872,15 @@ def construct_task_instance(self, session=None,
lock_for_update=False) -> TaskIn
else:
ti = qry.first()
return ti
+
+
+STATICA_HACK = True
+globals()['kcah_acitats'[::-1].upper()] = False
+if STATICA_HACK: # pragma: no cover
+ # Let pylint know about these relationships, without introducing an import
cycle
+ from sqlalchemy.orm import relationship
+
+ from ..job import base_job
+ from . import dagrun
Review comment:
I think we usually try to avoid dot imports in Airflow, any reason to
use them 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.
For queries about this service, please contact Infrastructure at:
[email protected]