Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
pomali committed May 22, 2024
1 parent de6ed14 commit bcad217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions push_notifications/apns_async.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
from dataclasses import asdict, dataclass
import time
from typing import Union
from typing import Dict, Union

from aioapns import APNs, NotificationRequest, ConnectionError

Expand Down Expand Up @@ -313,7 +313,7 @@ def apns_send_bulk_message(
"""

topic = get_manager().get_apns_topic(application_id)
results = {}
results: Dict[str, str] = {}

This comment has been minimized.

Copy link
@50-Course

50-Course May 22, 2024

Member

this is a forward thinking approach

inactive_tokens = []
apns_service = APNsService(application_id=application_id, creds=creds, topic=topic)
for registration_id in registration_ids:
Expand Down

0 comments on commit bcad217

Please sign in to comment.