Skip to content

Commit da515af

Browse files
committed
Rearrange code
1 parent b205c6c commit da515af

31 files changed

+65
-40
lines changed

compiler/api/compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ def start():
288288
sorted_args = sort_args(c.args)
289289

290290
arguments = (
291-
", "
292-
+ ("*, " if c.args else "")
293-
+ (", ".join([get_argument_type(i) for i in sorted_args if i != ("flags", "#")]) if c.args else "")
291+
", "
292+
+ ("*, " if c.args else "")
293+
+ (", ".join([get_argument_type(i) for i in sorted_args if i != ("flags", "#")]) if c.args else "")
294294
)
295295

296296
fields = "\n ".join(

pyrogram/api/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
from .list import List
2323
from .message import Message
2424
from .msg_container import MsgContainer
25-
from .tl_object import TLObject
2625
from .primitives import (
2726
Bool, BoolTrue, BoolFalse, Bytes, Double,
2827
Int, Long, Int128, Int256, Null, String, Vector
2928
)
29+
from .tl_object import TLObject

pyrogram/api/core/future_salt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from io import BytesIO
2020

21-
from .tl_object import TLObject
2221
from .primitives import Int, Long
22+
from .tl_object import TLObject
2323

2424

2525
class FutureSalt(TLObject):

pyrogram/api/core/future_salts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from io import BytesIO
2020

2121
from . import FutureSalt
22-
from .tl_object import TLObject
2322
from .primitives import Int, Long
23+
from .tl_object import TLObject
2424

2525

2626
class FutureSalts(TLObject):

pyrogram/api/core/gzip_packed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from gzip import compress, decompress
2020
from io import BytesIO
2121

22-
from .tl_object import TLObject
2322
from .primitives import Int, Bytes
23+
from .tl_object import TLObject
2424

2525

2626
class GzipPacked(TLObject):

pyrogram/api/core/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from io import BytesIO
2020

21-
from .tl_object import TLObject
2221
from .primitives import Int, Long
22+
from .tl_object import TLObject
2323

2424

2525
class Message(TLObject):

pyrogram/api/core/msg_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from io import BytesIO
2020

2121
from .message import Message
22-
from .tl_object import TLObject
2322
from .primitives import Int
23+
from .tl_object import TLObject
2424

2525

2626
class MsgContainer(TLObject):

pyrogram/client/methods/bots/get_inline_bot_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from typing import Union
2020

2121
from pyrogram.api import functions, types
22-
from pyrogram.errors import UnknownError
2322
from pyrogram.client.ext import BaseClient
23+
from pyrogram.errors import UnknownError
2424

2525

2626
class GetInlineBotResults(BaseClient):

pyrogram/client/methods/chats/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from .get_chat_members import GetChatMembers
2424
from .get_chat_members_count import GetChatMembersCount
2525
from .get_dialogs import GetDialogs
26+
from .get_dialogs_count import GetDialogsCount
2627
from .iter_chat_members import IterChatMembers
2728
from .iter_dialogs import IterDialogs
2829
from .join_chat import JoinChat
@@ -38,7 +39,6 @@
3839
from .unban_chat_member import UnbanChatMember
3940
from .unpin_chat_message import UnpinChatMessage
4041
from .update_chat_username import UpdateChatUsername
41-
from .get_dialogs_count import GetDialogsCount
4242

4343

4444
class Chats(

pyrogram/client/methods/users/get_user_dc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from typing import Union
2020

2121
from pyrogram.api import functions, types
22-
2322
from ...ext import BaseClient
2423

2524

0 commit comments

Comments
 (0)