mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Use modern typehint syntax
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from typing import Tuple
|
||||
|
||||
from pytest import raises
|
||||
from telethon._impl.mtproto import Intermediate
|
||||
|
||||
@@ -11,7 +9,7 @@ class Output(bytearray):
|
||||
self += data
|
||||
|
||||
|
||||
def setup_pack(n: int) -> Tuple[Intermediate, bytes, Output]:
|
||||
def setup_pack(n: int) -> tuple[Intermediate, bytes, Output]:
|
||||
input = bytes(x & 0xFF for x in range(n))
|
||||
return Intermediate(), input, Output()
|
||||
|
||||
|
Reference in New Issue
Block a user