[V2] Upgrade ruff and mypy version, format files (#4474)

This commit is contained in:
Jahongir Qurbonov
2024-10-06 20:05:11 +02:00
committed by GitHub
parent 918f719ab2
commit 86d41e1f06
67 changed files with 177 additions and 118 deletions
+1
View File
@@ -2,6 +2,7 @@ import struct
from typing import Optional
from pytest import raises
from telethon._impl.crypto import AuthKey
from telethon._impl.mtproto import Encrypted, Plain, RpcError
from telethon._impl.mtproto.mtp.types import MsgId
+1
View File
@@ -2,6 +2,7 @@ import asyncio
import logging
from pytest import LogCaptureFixture, mark
from telethon._impl.mtproto import Full
from telethon._impl.mtsender import connect
from telethon._impl.tl import LAYER, abcs, functions, types
+1
View File
@@ -1,6 +1,7 @@
import inspect
from pytest import raises
from telethon._impl.session import ChannelRef, GroupRef, PeerRef, UserRef
USER = UserRef(12, 34)
+1
View File
@@ -1,6 +1,7 @@
import struct
from pytest import mark
from telethon._impl.tl.core import Reader, Serializable
from telethon._impl.tl.mtproto.types import BadServerSalt
from telethon._impl.tl.types import GeoPoint
+1
View File
@@ -1,4 +1,5 @@
from rsa import PublicKey
from telethon._impl.crypto.rsa import (
PRODUCTION_RSA_KEY,
TESTMODE_RSA_KEY,
+1
View File
@@ -1,4 +1,5 @@
from pytest import mark
from telethon._impl.tl.core import serialize_bytes_to
+1
View File
@@ -1,4 +1,5 @@
from pytest import raises
from telethon._impl.mtproto import Abridged
+1
View File
@@ -1,4 +1,5 @@
from pytest import raises
from telethon._impl.mtproto import Full
@@ -1,4 +1,5 @@
from pytest import raises
from telethon._impl.mtproto import Intermediate
+1
View File
@@ -1,4 +1,5 @@
from pytest import mark, raises
from telethon._impl.crypto.two_factor_auth import (
calculate_2fa,
check_p_prime_and_subgroup,
+1
View File
@@ -1,4 +1,5 @@
from pytest import mark
from telethon._impl.client.types import AdminRight
from telethon._impl.tl import types