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

Fix Apprise mypy checks added in 1.8.0 #39580

Merged
merged 1 commit into from
May 13, 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
7 changes: 5 additions & 2 deletions airflow/providers/apprise/hooks/apprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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,
):
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apprise/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ integrations:

dependencies:
- apache-airflow>=2.7.0
- apprise
- apprise>=1.8.0

hooks:
- integration-name: Apprise
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"apprise": {
"deps": [
"apache-airflow>=2.7.0",
"apprise"
"apprise>=1.8.0"
],
"devel-deps": [],
"cross-providers-deps": [],
Expand Down
Loading