diff --git a/airflow/providers/apprise/hooks/apprise.py b/airflow/providers/apprise/hooks/apprise.py index 8ff3dadd9fae5..85b36a6b4a146 100644 --- a/airflow/providers/apprise/hooks/apprise.py +++ b/airflow/providers/apprise/hooks/apprise.py @@ -18,13 +18,16 @@ from __future__ import annotations import json -from typing import Any, Iterable +from typing import TYPE_CHECKING, Any, Iterable import apprise from apprise import AppriseConfig, NotifyFormat, NotifyType from airflow.hooks.base import BaseHook +if TYPE_CHECKING: + from apprise import AppriseAttachment + class AppriseHook(BaseHook): """ @@ -72,7 +75,7 @@ def notify( notify_type: NotifyType = NotifyType.INFO, body_format: NotifyFormat = NotifyFormat.TEXT, tag: str | Iterable[str] | None = None, - attach: str | Iterable[str] | None = None, + attach: AppriseAttachment | None = None, interpret_escapes: bool | None = None, config: AppriseConfig | None = None, ): diff --git a/airflow/providers/apprise/provider.yaml b/airflow/providers/apprise/provider.yaml index 23337abf87699..735cb8f98d4c9 100644 --- a/airflow/providers/apprise/provider.yaml +++ b/airflow/providers/apprise/provider.yaml @@ -43,7 +43,7 @@ integrations: dependencies: - apache-airflow>=2.6.0 - - apprise + - apprise>=1.8.0 hooks: - integration-name: Apprise diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index 2a6b6ac558cd8..a81cd93a8f248 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -251,7 +251,7 @@ "apprise": { "deps": [ "apache-airflow>=2.6.0", - "apprise" + "apprise>=1.8.0" ], "devel-deps": [], "cross-providers-deps": [],