Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed type hinting for handler function #42275

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions airflow/providers/common/sql/operators/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import ast
import re
from functools import cached_property
from typing import TYPE_CHECKING, Any, Callable, Iterable, Mapping, NoReturn, Sequence, SupportsAbs
from typing import TYPE_CHECKING, Any, Callable, Iterable, Mapping, NoReturn, Sequence, SupportsAbs, Tuple

from airflow.exceptions import AirflowException, AirflowFailException
from airflow.hooks.base import BaseHook
Expand Down Expand Up @@ -221,7 +221,7 @@ def __init__(
sql: str | list[str],
autocommit: bool = False,
parameters: Mapping | Iterable | None = None,
handler: Callable[[Any], Any] = fetch_all_handler,
handler: Callable[[Any], Iterable[Tuple]] = fetch_all_handler,
romsharon98 marked this conversation as resolved.
Show resolved Hide resolved
conn_id: str | None = None,
database: str | None = None,
split_statements: bool | None = None,
Expand Down
Loading