Skip to content

Commit 5a775df

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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
@@ -68,10 +68,10 @@
6868

6969
# These types are similar, but have distinct names to make processing them less error prone
7070
LogMessages: TypeAlias = list[str]
71-
"""The legacy format of log messages before 3.0.4"""
71+
"""The legacy format of log messages before 3.0.2"""
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)