mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-06 17:02:07 +00:00
[V2] Upgrade ruff and mypy version, format files (#4474)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,6 +1,7 @@
|
||||
import inspect
|
||||
|
||||
from pytest import raises
|
||||
|
||||
from telethon._impl.session import ChannelRef, GroupRef, PeerRef, UserRef
|
||||
|
||||
USER = UserRef(12, 34)
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
from rsa import PublicKey
|
||||
|
||||
from telethon._impl.crypto.rsa import (
|
||||
PRODUCTION_RSA_KEY,
|
||||
TESTMODE_RSA_KEY,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from pytest import mark
|
||||
|
||||
from telethon._impl.tl.core import serialize_bytes_to
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from pytest import raises
|
||||
|
||||
from telethon._impl.mtproto import Abridged
|
||||
|
||||
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
from pytest import mark, raises
|
||||
|
||||
from telethon._impl.crypto.two_factor_auth import (
|
||||
calculate_2fa,
|
||||
check_p_prime_and_subgroup,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from pytest import mark
|
||||
|
||||
from telethon._impl.client.types import AdminRight
|
||||
from telethon._impl.tl import types
|
||||
|
||||
|
||||
Reference in New Issue
Block a user