Add missed ChatPermissions to __all__ (#393)

* new: add missed ChatPermissions to __all__

* ref: standardize all __all__
This commit is contained in:
Ramzan Bekbulatov 2020-09-13 22:14:33 +03:00 committed by GitHub
parent 7f053412bf
commit 5b40a2b8cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 29 deletions

View file

@ -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'

View file

@ -2,8 +2,8 @@ from . import api
from .base import BaseBot
from .bot import Bot
__all__ = [
__all__ = (
'BaseBot',
'Bot',
'api'
]
'api',
)

View file

@ -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')

View file

@ -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'
]
)

View file

@ -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',
)

View file

@ -78,6 +78,7 @@ __all__ = (
'ChatActions',
'ChatMember',
'ChatMemberStatus',
'ChatPermissions',
'ChatPhoto',
'ChatType',
'ChosenInlineResult',

View file

@ -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',
)