From 61642c04a52c5619c97647b593f054f9b5563a88 Mon Sep 17 00:00:00 2001 From: Jahongir Qurbonov <109198731+Jahongir-Qurbonov@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:47:33 +0500 Subject: [PATCH] Add py.typed marker (#4477) --- client/src/telethon/_impl/crypto/aes.py | 4 ++-- client/src/telethon/py.typed | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 client/src/telethon/py.typed diff --git a/client/src/telethon/_impl/crypto/aes.py b/client/src/telethon/_impl/crypto/aes.py index bc248801..da6ea356 100644 --- a/client/src/telethon/_impl/crypto/aes.py +++ b/client/src/telethon/_impl/crypto/aes.py @@ -3,14 +3,14 @@ try: def ige_encrypt( plaintext: bytes | bytearray | memoryview, key: bytes, iv: bytes - ) -> bytes: # noqa: F811 + ) -> bytes: return cryptg.encrypt_ige( bytes(plaintext) if not isinstance(plaintext, bytes) else plaintext, key, iv ) def ige_decrypt( ciphertext: bytes | bytearray | memoryview, key: bytes, iv: bytes - ) -> bytes: # noqa: F811 + ) -> bytes: return cryptg.decrypt_ige( bytes(ciphertext) if not isinstance(ciphertext, bytes) else ciphertext, key, diff --git a/client/src/telethon/py.typed b/client/src/telethon/py.typed new file mode 100644 index 00000000..e69de29b