mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Fix some typing issues in tests
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import struct
|
||||
|
||||
from pytest import raises
|
||||
from telethon._impl.crypto.auth_key import AuthKey
|
||||
from telethon._impl.mtproto.mtp import Encrypted, Plain, RpcError
|
||||
from telethon._impl.tl.mtproto.types import RpcError as GeneratedRpcError
|
||||
|
||||
@@ -70,8 +71,8 @@ REQUEST = b"Hey!"
|
||||
REQUEST_B = b"Bye!"
|
||||
|
||||
|
||||
def auth_key() -> bytes:
|
||||
return bytes(256)
|
||||
def auth_key() -> AuthKey:
|
||||
return AuthKey.from_bytes(bytes(256))
|
||||
|
||||
|
||||
def ensure_buffer_is_message(buffer: bytes, body: bytes, seq_no: int) -> None:
|
||||
|
Reference in New Issue
Block a user