Reformat project

This commit is contained in:
Dan 2019-08-01 19:11:43 +02:00
parent ad0f8284f6
commit aa135ea457
15 changed files with 15 additions and 15 deletions

View File

@ -21,8 +21,9 @@ import struct
from typing import List
from typing import Union
import pyrogram
from pyrogram.api.types import PeerUser, PeerChat, PeerChannel
import pyrogram
from . import BaseClient
from ...api import types

View File

@ -18,8 +18,7 @@
from typing import Union
import pyrogram
from pyrogram.api import functions, types
from pyrogram.api import functions
from ...ext import BaseClient

View File

@ -21,7 +21,6 @@ from typing import List, Union
from pyrogram.api import functions, types
from pyrogram.client.ext import utils
from ...ext import BaseClient

View File

@ -21,7 +21,6 @@ from typing import Union, List
import pyrogram
from pyrogram.api import functions, types
from pyrogram.client.ext import utils
from ...ext import BaseClient

View File

@ -19,7 +19,6 @@
from typing import Union
from pyrogram.api import functions, types
from ...ext import BaseClient

View File

@ -18,8 +18,7 @@
from typing import Union
import pyrogram
from pyrogram.api import functions, types
from pyrogram.api import functions
from ...ext import BaseClient

View File

@ -16,4 +16,4 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .parser import Parser
from .parser import Parser

View File

@ -16,6 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .memory_storage import MemoryStorage
from .file_storage import FileStorage
from .memory_storage import MemoryStorage
from .storage import Storage

View File

@ -22,6 +22,7 @@ from pyrogram.api.types import (
KeyboardButtonUrl, KeyboardButtonCallback,
KeyboardButtonSwitchInline, KeyboardButtonGame
)
from .callback_game import CallbackGame
from ..object import Object

View File

@ -19,6 +19,7 @@
from typing import List
from pyrogram.api.types import ReplyInlineMarkup, KeyboardButtonRow
from . import InlineKeyboardButton
from ..object import Object

View File

@ -20,6 +20,7 @@ from typing import List, Union
from pyrogram.api.types import KeyboardButtonRow
from pyrogram.api.types import ReplyKeyboardMarkup as RawReplyKeyboardMarkup
from . import KeyboardButton
from ..object import Object

View File

@ -21,8 +21,9 @@ from datetime import datetime
from importlib import import_module
from typing import Type
from pyrogram.api.core import TLObject
from pyrogram.api.types import RpcError as RawRPCError
from pyrogram.api.core import TLObject
from .exceptions.all import exceptions

View File

@ -27,7 +27,6 @@ from pyrogram.api import functions, types
from pyrogram.api.core import TLObject, Long, Int
from pyrogram.connection import Connection
from pyrogram.crypto import AES, RSA, Prime
from .internals import MsgId
log = logging.getLogger(__name__)

View File

@ -16,9 +16,10 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from pyrogram.api.core import Message, MsgContainer, TLObject
from pyrogram.api.functions import Ping
from pyrogram.api.types import MsgsAck, HttpWait
from pyrogram.api.core import Message, MsgContainer, TLObject
from .msg_id import MsgId
from .seq_no import SeqNo

View File

@ -26,15 +26,15 @@ from os import urandom
from queue import Queue
from threading import Event, Thread
from pyrogram.api.all import layer
import pyrogram
from pyrogram import __copyright__, __license__, __version__
from pyrogram.api import functions, types, core
from pyrogram.api.all import layer
from pyrogram.api.core import Message, TLObject, MsgContainer, Long, FutureSalt, Int
from pyrogram.connection import Connection
from pyrogram.crypto import AES, KDF
from pyrogram.errors import RPCError, InternalServerError, AuthKeyDuplicated
from .internals import MsgId, MsgFactory
log = logging.getLogger(__name__)