Ensure __all__ are consistent

This commit is contained in:
Lonami Exo
2023-11-02 12:43:06 +01:00
parent 2992a8e212
commit cea9fc6c77
7 changed files with 67 additions and 29 deletions

View File

@@ -1,8 +1,4 @@
from .client import Client
from .net import Config
__all__ = [
"InlineResult",
"Client",
"Config",
]
__all__ = ["Client", "Config"]

View File

@@ -4,8 +4,8 @@ from .markdown import parse as parse_markdown_message
from .markdown import unparse as generate_markdown_message
__all__ = [
"generate_html_message",
"parse_html_message",
"generate_markdown_message",
"generate_html_message",
"parse_markdown_message",
"generate_markdown_message",
]

View File

@@ -85,5 +85,4 @@ __all__ = [
"SwitchInline",
"Text",
"Url",
"create",
]

View File

@@ -80,13 +80,4 @@ def expand_peer(peer: abcs.Peer, *, broadcast: Optional[bool]) -> Chat:
raise RuntimeError("unexpected case")
__all__ = [
"Chat",
"ChatLike",
"Channel",
"Group",
"User",
"build_chat_map",
"peer_id",
"expand_peer",
]
__all__ = ["Channel", "Chat", "Group", "User"]

View File

@@ -21,6 +21,7 @@ __all__ = [
"NO_UPDATES_TIMEOUT",
"USER_CHANNEL_DIFF_LIMIT",
"Gap",
"MessageBox",
"PossibleGap",
"PrematureEndReason",
"PtsInfo",
@@ -30,7 +31,6 @@ __all__ = [
"Session",
"UpdateState",
"User",
"MessageBox",
"MemorySession",
"SqliteSession",
"Storage",

View File

@@ -2,13 +2,4 @@ from . import abcs, functions, mtproto, types
from .core import Request
from .layer import LAYER, TYPE_MAPPING
__all__ = [
"abcs",
"core",
"functions",
"mtproto",
"types",
"Request",
"LAYER",
"TYPE_MAPPING",
]
__all__ = ['abcs', 'functions', 'mtproto', 'types', 'Request', 'LAYER', 'TYPE_MAPPING']