From 005a2354fc6a04928c7b99b027e1f7aecfaf4568 Mon Sep 17 00:00:00 2001 From: Jahongir Qurbonov Date: Mon, 7 Oct 2024 13:54:44 +0500 Subject: [PATCH] Fix F811 --- client/src/telethon/_impl/crypto/aes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,