Skip to content

Commit fe2e6bf

Browse files
committed
fix: Use Optional type hint for Python 3.9 compatibility
1 parent f97858a commit fe2e6bf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pubnub/pnconfiguration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import warnings
2-
from typing import Any
2+
from typing import Any, Optional
33
from copy import deepcopy
44
from Cryptodome.Cipher import AES
55
from pubnub.enums import PNHeartbeatNotificationOptions, PNReconnectionPolicy
@@ -15,9 +15,9 @@ class PNConfiguration(object):
1515
_locked = False
1616

1717
def __init__(self,
18-
subscribe_key: str | None = None,
19-
publish_key: str | None = None,
20-
uuid: str | None = None):
18+
subscribe_key: Optional[str] = None,
19+
publish_key: Optional[str] = None,
20+
uuid: Optional[str] = None):
2121
# TODO: add validation
2222
self._uuid = uuid
2323
self.origin = "ps.pndsn.com"

0 commit comments

Comments
 (0)