uranusjr commented on a change in pull request #20011:
URL: https://github.com/apache/airflow/pull/20011#discussion_r761976058
##########
File path: airflow/models/xcom.py
##########
@@ -376,4 +505,7 @@ def resolve_xcom_backend():
return BaseXCom
-XCom = resolve_xcom_backend()
+if TYPE_CHECKING:
+ XCom = BaseXCom # Hack to avoid Mypy "Variable 'XCom' is not valid as a
type".
+else:
+ XCom = resolve_xcom_backend()
Review comment:
Why are we using autoapi in the first place? Do we have any non-Python
APIs that can’t be documented with sphinx.ext.autodoc?
--
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]