morgan-dgk commented on PR #55447:
URL: https://github.com/apache/airflow/pull/55447#issuecomment-3276618322

   > Yeah, we aren't very good about it yet.
   > 
   > In this case it's a bit hard I suspect, but this is probably a:
   > 
   > ```
   > try:
   >     from airflow.sdk import Someting
   > except ImportError:
   >    from airflow.old import Else
   > ```
   > 
   > but I don't know if that pattern will work here.
   > 
   > 
   
   In this case, the `BaseOperator` class is already present in the TaskSDK, 
but is missing the `xcom_push` method from the `BaseOperator` from the old 
models import. 
   
   So, I don't think the above would work here. 


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to