uranusjr commented on code in PR #53600:
URL: https://github.com/apache/airflow/pull/53600#discussion_r2241699404
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/decorators/kubernetes_cmd.py:
##########
@@ -24,13 +24,13 @@
from airflow.providers.cncf.kubernetes.version_compat import (
DecoratedOperator,
TaskDecorator,
+ context_merge,
task_decorator_factory,
)
-from airflow.utils.context import context_merge
from airflow.utils.operator_helpers import determine_kwargs
if TYPE_CHECKING:
- from airflow.utils.context import Context
+ from airflow.utils.context import Context # type: ignore[attr-defined,
no-redef]
Review Comment:
Since this is just for type-checking, it should be good enough to do the sdk
import without the try-except block.
--
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]