Skip to content

Commit

Permalink
Remove TypedDict for py3.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Sep 27, 2023
1 parent 1745457 commit 786151d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pubnub/crypto_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from abc import abstractmethod
from Cryptodome.Cipher import AES
from typing import TypedDict


class PubNubCrypto:
Expand All @@ -20,15 +19,15 @@ def decrypt(self, key, msg):
pass


class CryptoHeader(TypedDict):
class CryptoHeader(dict):
sentinel: str
cryptor_ver: int
cryptor_id: str
cryptor_data: any
length: any


class CryptorPayload(TypedDict):
class CryptorPayload(dict):
data: bytes
cryptor_data: bytes

Expand Down

0 comments on commit 786151d

Please sign in to comment.