mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-15 05:56:36 +03:00
Add py.typed marker (#4477)
This commit is contained in:
parent
86d41e1f06
commit
61642c04a5
|
@ -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,
|
||||||
|
|
0
client/src/telethon/py.typed
Normal file
0
client/src/telethon/py.typed
Normal file
Loading…
Reference in New Issue
Block a user