mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add missed ChatPermissions to __all__ (#393)
* new: add missed ChatPermissions to __all__ * ref: standardize all __all__
This commit is contained in:
parent
7f053412bf
commit
5b40a2b8cf
7 changed files with 30 additions and 29 deletions
|
|
@ -25,7 +25,7 @@ else:
|
|||
if 'DISABLE_UVLOOP' not in os.environ:
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
__all__ = [
|
||||
__all__ = (
|
||||
'Bot',
|
||||
'Dispatcher',
|
||||
'__api_version__',
|
||||
|
|
@ -40,8 +40,8 @@ __all__ = [
|
|||
'md',
|
||||
'middlewares',
|
||||
'types',
|
||||
'utils'
|
||||
]
|
||||
'utils',
|
||||
)
|
||||
|
||||
__version__ = '2.9.2'
|
||||
__api_version__ = '4.9'
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from . import api
|
|||
from .base import BaseBot
|
||||
from .bot import Bot
|
||||
|
||||
__all__ = [
|
||||
__all__ = (
|
||||
'BaseBot',
|
||||
'Bot',
|
||||
'api'
|
||||
]
|
||||
'api',
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from rethinkdb.asyncio_net.net_asyncio import Connection
|
|||
|
||||
from ...dispatcher.storage import BaseStorage
|
||||
|
||||
__all__ = ['RethinkDBStorage']
|
||||
__all__ = ('RethinkDBStorage',)
|
||||
|
||||
r = rethinkdb.RethinkDB()
|
||||
r.set_loop_type('asyncio')
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from . import storage
|
|||
from . import webhook
|
||||
from .dispatcher import Dispatcher, FSMContext, DEFAULT_RATE_LIMIT
|
||||
|
||||
__all__ = [
|
||||
__all__ = (
|
||||
'DEFAULT_RATE_LIMIT',
|
||||
'Dispatcher',
|
||||
'FSMContext',
|
||||
|
|
@ -14,4 +14,4 @@ __all__ = [
|
|||
'middlewares',
|
||||
'storage',
|
||||
'webhook'
|
||||
]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,33 +6,33 @@ from .factory import FiltersFactory
|
|||
from .filters import AbstractFilter, BoundFilter, Filter, FilterNotPassed, FilterRecord, execute_filter, \
|
||||
check_filters, get_filter_spec, get_filters_spec
|
||||
|
||||
__all__ = [
|
||||
'AbstractFilter',
|
||||
'BoundFilter',
|
||||
__all__ = (
|
||||
'Command',
|
||||
'CommandStart',
|
||||
'CommandHelp',
|
||||
'CommandPrivacy',
|
||||
'CommandSettings',
|
||||
'CommandStart',
|
||||
'ContentTypeFilter',
|
||||
'ExceptionsFilter',
|
||||
'HashTag',
|
||||
'Filter',
|
||||
'FilterNotPassed',
|
||||
'FilterRecord',
|
||||
'FiltersFactory',
|
||||
'RegexpCommandsFilter',
|
||||
'Regexp',
|
||||
'RegexpCommandsFilter',
|
||||
'StateFilter',
|
||||
'Text',
|
||||
'IDFilter',
|
||||
'AdminFilter',
|
||||
'IsReplyFilter',
|
||||
'IsSenderContact',
|
||||
'AdminFilter',
|
||||
'get_filter_spec',
|
||||
'get_filters_spec',
|
||||
'execute_filter',
|
||||
'check_filters',
|
||||
'ForwardedMessageFilter',
|
||||
'ChatTypeFilter',
|
||||
]
|
||||
'FiltersFactory',
|
||||
'AbstractFilter',
|
||||
'BoundFilter',
|
||||
'Filter',
|
||||
'FilterNotPassed',
|
||||
'FilterRecord',
|
||||
'execute_filter',
|
||||
'check_filters',
|
||||
'get_filter_spec',
|
||||
'get_filters_spec',
|
||||
)
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ __all__ = (
|
|||
'ChatActions',
|
||||
'ChatMember',
|
||||
'ChatMemberStatus',
|
||||
'ChatPermissions',
|
||||
'ChatPhoto',
|
||||
'ChatType',
|
||||
'ChosenInlineResult',
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ if TYPE_CHECKING: # pragma: no cover
|
|||
from aiogram.types import MessageEntity
|
||||
|
||||
__all__ = (
|
||||
"TextDecoration",
|
||||
"HtmlDecoration",
|
||||
"MarkdownDecoration",
|
||||
"html_decoration",
|
||||
"markdown_decoration",
|
||||
'HtmlDecoration',
|
||||
'MarkdownDecoration',
|
||||
'TextDecoration',
|
||||
'html_decoration',
|
||||
'markdown_decoration',
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue