You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "SamWheating (via GitHub)" <gi...@apache.org> on 2023/03/02 06:57:19 UTC

[GitHub] [airflow] SamWheating commented on a diff in pull request #29850: Fixing broken filter in in /taskinstance/list view

SamWheating commented on code in PR #29850:
URL: https://github.com/apache/airflow/pull/29850#discussion_r1122665539


##########
airflow/models/taskinstance.py:
##########
@@ -139,6 +139,10 @@
     from airflow.models.operator import Operator
     from airflow.utils.task_group import MappedTaskGroup, TaskGroup
 
+    hybrid_property = property
+else:
+    from sqlalchemy.ext.hybrid import hybrid_property

Review Comment:
   It's a workaround for mypy not understanding the type of hybrid properties - more info here:
   https://github.com/python/mypy/issues/4430#issuecomment-781272415



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org