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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]