From aa135ea457880a051531b7624c65f8d1dc6b45da Mon Sep 17 00:00:00 2001
From: Dan <14043624+delivrance@users.noreply.github.com>
Date: Thu, 1 Aug 2019 19:11:43 +0200
Subject: [PATCH] Reformat project
---
pyrogram/client/ext/utils.py | 3 ++-
pyrogram/client/methods/users/block_user.py | 3 +--
pyrogram/client/methods/users/delete_profile_photos.py | 1 -
pyrogram/client/methods/users/get_profile_photos.py | 1 -
pyrogram/client/methods/users/get_profile_photos_count.py | 1 -
pyrogram/client/methods/users/unblock_user.py | 3 +--
pyrogram/client/parser/__init__.py | 2 +-
pyrogram/client/storage/__init__.py | 2 +-
.../client/types/bots_and_keyboards/inline_keyboard_button.py | 1 +
.../client/types/bots_and_keyboards/inline_keyboard_markup.py | 1 +
.../client/types/bots_and_keyboards/reply_keyboard_markup.py | 1 +
pyrogram/errors/rpc_error.py | 3 ++-
pyrogram/session/auth.py | 1 -
pyrogram/session/internals/msg_factory.py | 3 ++-
pyrogram/session/session.py | 4 ++--
15 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py
index d89f83bb..fbee9ea8 100644
--- a/pyrogram/client/ext/utils.py
+++ b/pyrogram/client/ext/utils.py
@@ -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
diff --git a/pyrogram/client/methods/users/block_user.py b/pyrogram/client/methods/users/block_user.py
index 120a4aaf..ff29089c 100644
--- a/pyrogram/client/methods/users/block_user.py
+++ b/pyrogram/client/methods/users/block_user.py
@@ -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
diff --git a/pyrogram/client/methods/users/delete_profile_photos.py b/pyrogram/client/methods/users/delete_profile_photos.py
index c155ede8..5c3b26e8 100644
--- a/pyrogram/client/methods/users/delete_profile_photos.py
+++ b/pyrogram/client/methods/users/delete_profile_photos.py
@@ -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
diff --git a/pyrogram/client/methods/users/get_profile_photos.py b/pyrogram/client/methods/users/get_profile_photos.py
index dece6b5d..2723a36c 100644
--- a/pyrogram/client/methods/users/get_profile_photos.py
+++ b/pyrogram/client/methods/users/get_profile_photos.py
@@ -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
diff --git a/pyrogram/client/methods/users/get_profile_photos_count.py b/pyrogram/client/methods/users/get_profile_photos_count.py
index 4069f85b..51a4091e 100644
--- a/pyrogram/client/methods/users/get_profile_photos_count.py
+++ b/pyrogram/client/methods/users/get_profile_photos_count.py
@@ -19,7 +19,6 @@
from typing import Union
from pyrogram.api import functions, types
-
from ...ext import BaseClient
diff --git a/pyrogram/client/methods/users/unblock_user.py b/pyrogram/client/methods/users/unblock_user.py
index 8b87cd7e..e42fbd24 100644
--- a/pyrogram/client/methods/users/unblock_user.py
+++ b/pyrogram/client/methods/users/unblock_user.py
@@ -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
diff --git a/pyrogram/client/parser/__init__.py b/pyrogram/client/parser/__init__.py
index 4769038d..53806619 100644
--- a/pyrogram/client/parser/__init__.py
+++ b/pyrogram/client/parser/__init__.py
@@ -16,4 +16,4 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see .
-from .parser import Parser
\ No newline at end of file
+from .parser import Parser
diff --git a/pyrogram/client/storage/__init__.py b/pyrogram/client/storage/__init__.py
index 00d2f144..657c06eb 100644
--- a/pyrogram/client/storage/__init__.py
+++ b/pyrogram/client/storage/__init__.py
@@ -16,6 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see .
-from .memory_storage import MemoryStorage
from .file_storage import FileStorage
+from .memory_storage import MemoryStorage
from .storage import Storage
diff --git a/pyrogram/client/types/bots_and_keyboards/inline_keyboard_button.py b/pyrogram/client/types/bots_and_keyboards/inline_keyboard_button.py
index 54aa7802..514b0303 100644
--- a/pyrogram/client/types/bots_and_keyboards/inline_keyboard_button.py
+++ b/pyrogram/client/types/bots_and_keyboards/inline_keyboard_button.py
@@ -22,6 +22,7 @@ from pyrogram.api.types import (
KeyboardButtonUrl, KeyboardButtonCallback,
KeyboardButtonSwitchInline, KeyboardButtonGame
)
+
from .callback_game import CallbackGame
from ..object import Object
diff --git a/pyrogram/client/types/bots_and_keyboards/inline_keyboard_markup.py b/pyrogram/client/types/bots_and_keyboards/inline_keyboard_markup.py
index 7b811f88..bdca85d1 100644
--- a/pyrogram/client/types/bots_and_keyboards/inline_keyboard_markup.py
+++ b/pyrogram/client/types/bots_and_keyboards/inline_keyboard_markup.py
@@ -19,6 +19,7 @@
from typing import List
from pyrogram.api.types import ReplyInlineMarkup, KeyboardButtonRow
+
from . import InlineKeyboardButton
from ..object import Object
diff --git a/pyrogram/client/types/bots_and_keyboards/reply_keyboard_markup.py b/pyrogram/client/types/bots_and_keyboards/reply_keyboard_markup.py
index 4e666d1f..f958051b 100644
--- a/pyrogram/client/types/bots_and_keyboards/reply_keyboard_markup.py
+++ b/pyrogram/client/types/bots_and_keyboards/reply_keyboard_markup.py
@@ -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
diff --git a/pyrogram/errors/rpc_error.py b/pyrogram/errors/rpc_error.py
index 806b5373..9969d3fa 100644
--- a/pyrogram/errors/rpc_error.py
+++ b/pyrogram/errors/rpc_error.py
@@ -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
diff --git a/pyrogram/session/auth.py b/pyrogram/session/auth.py
index b05b2855..f6d137fa 100644
--- a/pyrogram/session/auth.py
+++ b/pyrogram/session/auth.py
@@ -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__)
diff --git a/pyrogram/session/internals/msg_factory.py b/pyrogram/session/internals/msg_factory.py
index 2b833ce8..453eefc1 100644
--- a/pyrogram/session/internals/msg_factory.py
+++ b/pyrogram/session/internals/msg_factory.py
@@ -16,9 +16,10 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see .
-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
diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py
index 21e2ba10..689fe584 100644
--- a/pyrogram/session/session.py
+++ b/pyrogram/session/session.py
@@ -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__)