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:
|
if 'DISABLE_UVLOOP' not in os.environ:
|
||||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||||
|
|
||||||
__all__ = [
|
__all__ = (
|
||||||
'Bot',
|
'Bot',
|
||||||
'Dispatcher',
|
'Dispatcher',
|
||||||
'__api_version__',
|
'__api_version__',
|
||||||
|
|
@ -40,8 +40,8 @@ __all__ = [
|
||||||
'md',
|
'md',
|
||||||
'middlewares',
|
'middlewares',
|
||||||
'types',
|
'types',
|
||||||
'utils'
|
'utils',
|
||||||
]
|
)
|
||||||
|
|
||||||
__version__ = '2.9.2'
|
__version__ = '2.9.2'
|
||||||
__api_version__ = '4.9'
|
__api_version__ = '4.9'
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ from . import api
|
||||||
from .base import BaseBot
|
from .base import BaseBot
|
||||||
from .bot import Bot
|
from .bot import Bot
|
||||||
|
|
||||||
__all__ = [
|
__all__ = (
|
||||||
'BaseBot',
|
'BaseBot',
|
||||||
'Bot',
|
'Bot',
|
||||||
'api'
|
'api',
|
||||||
]
|
)
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ from rethinkdb.asyncio_net.net_asyncio import Connection
|
||||||
|
|
||||||
from ...dispatcher.storage import BaseStorage
|
from ...dispatcher.storage import BaseStorage
|
||||||
|
|
||||||
__all__ = ['RethinkDBStorage']
|
__all__ = ('RethinkDBStorage',)
|
||||||
|
|
||||||
r = rethinkdb.RethinkDB()
|
r = rethinkdb.RethinkDB()
|
||||||
r.set_loop_type('asyncio')
|
r.set_loop_type('asyncio')
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ from . import storage
|
||||||
from . import webhook
|
from . import webhook
|
||||||
from .dispatcher import Dispatcher, FSMContext, DEFAULT_RATE_LIMIT
|
from .dispatcher import Dispatcher, FSMContext, DEFAULT_RATE_LIMIT
|
||||||
|
|
||||||
__all__ = [
|
__all__ = (
|
||||||
'DEFAULT_RATE_LIMIT',
|
'DEFAULT_RATE_LIMIT',
|
||||||
'Dispatcher',
|
'Dispatcher',
|
||||||
'FSMContext',
|
'FSMContext',
|
||||||
|
|
@ -14,4 +14,4 @@ __all__ = [
|
||||||
'middlewares',
|
'middlewares',
|
||||||
'storage',
|
'storage',
|
||||||
'webhook'
|
'webhook'
|
||||||
]
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,33 +6,33 @@ from .factory import FiltersFactory
|
||||||
from .filters import AbstractFilter, BoundFilter, Filter, FilterNotPassed, FilterRecord, execute_filter, \
|
from .filters import AbstractFilter, BoundFilter, Filter, FilterNotPassed, FilterRecord, execute_filter, \
|
||||||
check_filters, get_filter_spec, get_filters_spec
|
check_filters, get_filter_spec, get_filters_spec
|
||||||
|
|
||||||
__all__ = [
|
__all__ = (
|
||||||
'AbstractFilter',
|
|
||||||
'BoundFilter',
|
|
||||||
'Command',
|
'Command',
|
||||||
'CommandStart',
|
|
||||||
'CommandHelp',
|
'CommandHelp',
|
||||||
'CommandPrivacy',
|
'CommandPrivacy',
|
||||||
'CommandSettings',
|
'CommandSettings',
|
||||||
|
'CommandStart',
|
||||||
'ContentTypeFilter',
|
'ContentTypeFilter',
|
||||||
'ExceptionsFilter',
|
'ExceptionsFilter',
|
||||||
'HashTag',
|
'HashTag',
|
||||||
'Filter',
|
|
||||||
'FilterNotPassed',
|
|
||||||
'FilterRecord',
|
|
||||||
'FiltersFactory',
|
|
||||||
'RegexpCommandsFilter',
|
|
||||||
'Regexp',
|
'Regexp',
|
||||||
|
'RegexpCommandsFilter',
|
||||||
'StateFilter',
|
'StateFilter',
|
||||||
'Text',
|
'Text',
|
||||||
'IDFilter',
|
'IDFilter',
|
||||||
|
'AdminFilter',
|
||||||
'IsReplyFilter',
|
'IsReplyFilter',
|
||||||
'IsSenderContact',
|
'IsSenderContact',
|
||||||
'AdminFilter',
|
|
||||||
'get_filter_spec',
|
|
||||||
'get_filters_spec',
|
|
||||||
'execute_filter',
|
|
||||||
'check_filters',
|
|
||||||
'ForwardedMessageFilter',
|
'ForwardedMessageFilter',
|
||||||
'ChatTypeFilter',
|
'ChatTypeFilter',
|
||||||
]
|
'FiltersFactory',
|
||||||
|
'AbstractFilter',
|
||||||
|
'BoundFilter',
|
||||||
|
'Filter',
|
||||||
|
'FilterNotPassed',
|
||||||
|
'FilterRecord',
|
||||||
|
'execute_filter',
|
||||||
|
'check_filters',
|
||||||
|
'get_filter_spec',
|
||||||
|
'get_filters_spec',
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ __all__ = (
|
||||||
'ChatActions',
|
'ChatActions',
|
||||||
'ChatMember',
|
'ChatMember',
|
||||||
'ChatMemberStatus',
|
'ChatMemberStatus',
|
||||||
|
'ChatPermissions',
|
||||||
'ChatPhoto',
|
'ChatPhoto',
|
||||||
'ChatType',
|
'ChatType',
|
||||||
'ChosenInlineResult',
|
'ChosenInlineResult',
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ if TYPE_CHECKING: # pragma: no cover
|
||||||
from aiogram.types import MessageEntity
|
from aiogram.types import MessageEntity
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
"TextDecoration",
|
'HtmlDecoration',
|
||||||
"HtmlDecoration",
|
'MarkdownDecoration',
|
||||||
"MarkdownDecoration",
|
'TextDecoration',
|
||||||
"html_decoration",
|
'html_decoration',
|
||||||
"markdown_decoration",
|
'markdown_decoration',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue