From 786151d95bd36dd4d03ca4c6791230e1bf3b122d Mon Sep 17 00:00:00 2001 From: Sebastian Molenda Date: Wed, 27 Sep 2023 20:23:13 +0200 Subject: [PATCH] Remove TypedDict for py3.7 compatibility --- pubnub/crypto_core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pubnub/crypto_core.py b/pubnub/crypto_core.py index da9ad141..8f079750 100644 --- a/pubnub/crypto_core.py +++ b/pubnub/crypto_core.py @@ -4,7 +4,6 @@ from abc import abstractmethod from Cryptodome.Cipher import AES -from typing import TypedDict class PubNubCrypto: @@ -20,7 +19,7 @@ def decrypt(self, key, msg): pass -class CryptoHeader(TypedDict): +class CryptoHeader(dict): sentinel: str cryptor_ver: int cryptor_id: str @@ -28,7 +27,7 @@ class CryptoHeader(TypedDict): length: any -class CryptorPayload(TypedDict): +class CryptorPayload(dict): data: bytes cryptor_data: bytes