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

style: fix mypy warning #1541

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
sql=SNOWFLAKE_SLACK_SQL,
poke_interval=POKE_INTERVAL,
timeout=TASK_TIMEOUT * 60,
success=lambda result: True, # type: ignore[arg-type]
success=lambda result: True,
)

snowflake_op_sql_str >> snowflake_op_with_params >> snowflake_op_sql_sensor >> snowflake_with_callable
6 changes: 3 additions & 3 deletions astronomer/providers/snowflake/sensors/snowflake.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from datetime import timedelta
from typing import Any, Sequence
from typing import Any, Callable, Sequence

from airflow.exceptions import AirflowException
from airflow.providers.common.sql.sensors.sql import SqlSensor
Expand Down Expand Up @@ -48,8 +48,8 @@ def __init__(
snowflake_conn_id: str,
sql: str,
parameters: dict[str, Any] | None = None,
success: str | None = None,
failure: str | None = None,
success: Callable[[Any], bool] | None = None,
failure: Callable[[Any], bool] | None = None,
fail_on_empty: bool = False,
hook_params: dict[str, Any] | None = None,
**kwargs: Any,
Expand Down
Loading