Skip to content

Commit ffa3797

Browse files
committed
Revert change in file_task_handler
1 parent 070916b commit ffa3797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airflow-core/src/airflow/utils/log/file_task_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from itertools import chain, islice
3131
from pathlib import Path
3232
from types import GeneratorType
33-
from typing import IO, TYPE_CHECKING, Any, TypedDict, cast
33+
from typing import IO, TYPE_CHECKING, TypedDict, cast
3434
from urllib.parse import urljoin
3535

3636
import pendulum
@@ -71,7 +71,7 @@
7171
"""The legacy format of log messages before 3.0.4"""
7272
LogSourceInfo: TypeAlias = list[str]
7373
"""Information _about_ the log fetching process for display to a user"""
74-
RawLogStream: TypeAlias = Generator[str | dict[str, Any], None, None]
74+
RawLogStream: TypeAlias = Generator[str, None, None]
7575
"""Raw log stream, containing unparsed log lines."""
7676
LegacyLogResponse: TypeAlias = tuple[LogSourceInfo, LogMessages | None]
7777
"""Legacy log response, containing source information and log messages."""

0 commit comments

Comments
 (0)