Skip to content

Commit

Permalink
Add metadata to asyncio backends
Browse files Browse the repository at this point in the history
  • Loading branch information
hugobessa committed Dec 20, 2024
1 parent a6b0cba commit e11aee6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vintasend/services/notification_backends/asyncio_base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from abc import ABC, abstractmethod
import asyncio
import datetime
import uuid
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Iterable

from vintasend.services.utils import get_class_path


if TYPE_CHECKING:
from vintasend.services.dataclasses import Notification, UpdateNotificationKwargs

Expand Down Expand Up @@ -58,6 +60,7 @@ async def persist_notification(
send_after: datetime.datetime | None,
subject_template: str,
preheader_template: str,
metadata: dict | None = None,
lock: asyncio.Lock | None = None
) -> "Notification":
...
Expand Down

0 comments on commit e11aee6

Please sign in to comment.