Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

from airflow.providers.common.compat._compat_utils import create_module_getattr
from airflow.providers.common.compat.version_compat import (
AIRFLOW_V_3_0_PLUS,
AIRFLOW_V_3_1_PLUS,
AIRFLOW_V_3_2_PLUS,
)
Expand All @@ -45,7 +44,7 @@
from airflow.sdk.bases.decorator import is_async_callable
from airflow.sdk.bases.operator import BaseAsyncOperator
else:
if AIRFLOW_V_3_0_PLUS:
if AIRFLOW_V_3_1_PLUS:
from airflow.sdk import BaseOperator
else:
from airflow.models import BaseOperator
Expand All @@ -66,16 +65,6 @@ class BaseAsyncOperator(BaseOperator):
def is_async(self) -> bool:
return True

if not AIRFLOW_V_3_1_PLUS:

@property
def xcom_push(self) -> bool:
return self.do_xcom_push

@xcom_push.setter
def xcom_push(self, value: bool):
self.do_xcom_push = value

async def aexecute(self, context):
raise NotImplementedError()

Expand Down