ashb commented on a change in pull request #20011:
URL: https://github.com/apache/airflow/pull/20011#discussion_r761936426
##########
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:
Every so often I've tried upgrading sphinx-autoapi, but last _n_ times I
tried there was a bug that meant it didn't build docs on a more recent version
:(
--
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]