phanikumv commented on code in PR #77759:
URL: https://github.com/apache/airflow/pull/77759#discussion_r4765661990
##########
task-sdk/src/airflow/sdk/execution_time/callback_runner.py:
##########
@@ -26,12 +26,26 @@
if TYPE_CHECKING:
from structlog.typing import FilteringBoundLogger as Logger
+ from airflow.sdk.definitions.asset.metadata import Metadata
from airflow.sdk.types import OutletEventAccessorsProtocol
P = ParamSpec("P")
R = TypeVar("R")
+def _record_metadata(outlet_events: OutletEventAccessorsProtocol, metadata:
Metadata) -> None:
+ from airflow.sdk.exceptions import UndeclaredOutletError
Review Comment:
Unneeded imports inside functions (`callback_runner.py:37`, and
`test_task_runner.py` at 2756, 2780, 2799, 2818, 2846 and 2867
--
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]