Add py.typed marker (#4477)

This commit is contained in:
Jahongir Qurbonov
2024-10-07 14:47:33 +05:00
committed by GitHub
parent 86d41e1f06
commit 61642c04a5
2 changed files with 2 additions and 2 deletions

View File

@@ -3,14 +3,14 @@ try:
def ige_encrypt( def ige_encrypt(
plaintext: bytes | bytearray | memoryview, key: bytes, iv: bytes plaintext: bytes | bytearray | memoryview, key: bytes, iv: bytes
) -> bytes: # noqa: F811 ) -> bytes:
return cryptg.encrypt_ige( return cryptg.encrypt_ige(
bytes(plaintext) if not isinstance(plaintext, bytes) else plaintext, key, iv bytes(plaintext) if not isinstance(plaintext, bytes) else plaintext, key, iv
) )
def ige_decrypt( def ige_decrypt(
ciphertext: bytes | bytearray | memoryview, key: bytes, iv: bytes ciphertext: bytes | bytearray | memoryview, key: bytes, iv: bytes
) -> bytes: # noqa: F811 ) -> bytes:
return cryptg.decrypt_ige( return cryptg.decrypt_ige(
bytes(ciphertext) if not isinstance(ciphertext, bytes) else ciphertext, bytes(ciphertext) if not isinstance(ciphertext, bytes) else ciphertext,
key, key,

View File