Taragolis commented on code in PR #39430:
URL: https://github.com/apache/airflow/pull/39430#discussion_r1609744021
##########
airflow/__init__.py:
##########
@@ -81,6 +82,12 @@
# Deprecated lazy imports
"AirflowException": (".exceptions", "AirflowException", True),
}
+if TYPE_CHECKING:
+ # This is never executed, but tricks static analyzers (PyDev, PyCharm,)
+ # into knowing the types of these symbols, and what they contain.
+ from airflow.models.dag import DAG # noqa: TCH004
+ from airflow.models.dataset import Dataset # noqa: TCH004
+ from airflow.models.xcom_arg import XComArg # noqa: TCH004
Review Comment:
As soon as we merge https://github.com/apache/airflow/pull/39750 I will drop
commit which add this fix from this pr
--
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]