ashb commented on a change in pull request #20011:
URL: https://github.com/apache/airflow/pull/20011#discussion_r761909724



##########
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:
       I think this might be causing docs to fail too, as it's somehow finding 
two places for all the methods on XCom.
   
   (I'm guessing as to cause, doc build is failing though)




-- 
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]


Reply via email to