Skip to content

Commit 5bb195d

Browse files
committed
Solve python lower versions break
1 parent 7361d21 commit 5bb195d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

push_notifications/apns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
import time
8-
from typing import Optional, Dict, Any, List
8+
from typing import Optional, Dict, Any, List, Union
99
from apns2 import client as apns2_client
1010
from apns2 import credentials as apns2_credentials
1111
from apns2 import errors as apns2_errors
@@ -71,7 +71,7 @@ def _apns_prepare(
7171

7272

7373
def _apns_send(
74-
registration_id: str | List[str],
74+
registration_id: Union[str, List[str]],
7575
alert: Optional[str] = None,
7676
batch: bool = False,
7777
application_id: Optional[str] = None,

0 commit comments

Comments
 (0)