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



##########
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:
       No good reason, no. Laziness on my part.
   
   I think we avoid them in Airflow because of Py2 oddness with them, and stop 
we've never reconsidered since dropping support for Py2 (at least not that I've 
seen)
   
   But also other than shorter lines there's no functional difference so :shrug:




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


Reply via email to