sunank200 commented on code in PR #58223:
URL: https://github.com/apache/airflow/pull/58223#discussion_r2517198105


##########
task-sdk/src/airflow/sdk/definitions/decorators/__init__.pyi:
##########
@@ -29,10 +29,10 @@ from kubernetes.client import models as k8s
 
 from airflow.providers.cncf.kubernetes.secret import Secret
 from airflow.sdk.bases.decorator import FParams, FReturn, Task, TaskDecorator, 
_TaskDecorator
+from airflow.sdk.definitions._internal.typing_compat import Literal

Review Comment:
   You can avoid importing Self/Literal at runtime entirely and import them 
only under TYPE_CHECKING.



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