Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Reformatted SQLExecuteQueryTrigger definition
Browse files Browse the repository at this point in the history
davidblain-infrabel authored and potiuk committed Jan 2, 2025
1 parent 0e426dc commit 4bc7d6f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions providers/src/airflow/providers/common/sql/triggers/sql.pyi
Original file line number Diff line number Diff line change
@@ -28,24 +28,20 @@
# You can read more in the README_API.md file
#
"""
Definition of the public interface for airflow.providers.common.sql.sensors.sql
Definition of the public interface for airflow.providers.common.sql.triggers.sql
isort:skip_file
"""
from airflow.triggers.base import BaseTrigger, TriggerEvent

from collections.abc import AsyncIterator
from typing import Any

from airflow.triggers.base import BaseTrigger, TriggerEvent


class SQLExecuteQueryTrigger(BaseTrigger):
def __init__(
self,
sql: str | list[str],
conn_id: str,
hook_params: dict | None = None,
**kwargs,
self, sql: str | list[str], conn_id: str, hook_params: dict | None = None, **kwargs,
) -> None: ...

def serialize(self) -> tuple[str, dict[str, Any]]: ...

async def run(self) -> AsyncIterator[TriggerEvent]:...
async def run(self) -> AsyncIterator[TriggerEvent]: ...

0 comments on commit 4bc7d6f

Please sign in to comment.