mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
style: module level dunders should be placed before any import statements
This commit is contained in:
parent
100848b889
commit
6d797524c4
1 changed files with 22 additions and 21 deletions
|
|
@ -1,4 +1,26 @@
|
|||
__all__ = [
|
||||
'Bot',
|
||||
'Dispatcher',
|
||||
'__api_version__',
|
||||
'__version__',
|
||||
'bot',
|
||||
'contrib',
|
||||
'dispatcher',
|
||||
'exceptions',
|
||||
'executor',
|
||||
'filters',
|
||||
'helper',
|
||||
'md',
|
||||
'middlewares',
|
||||
'types',
|
||||
'utils',
|
||||
]
|
||||
|
||||
__version__ = '2.15'
|
||||
__api_version__ = '5.3'
|
||||
|
||||
import sys
|
||||
|
||||
if sys.version_info < (3, 7):
|
||||
raise ImportError('Your Python version {0} is not supported by aiogram, please install '
|
||||
'Python 3.7+'.format('.'.join(map(str, sys.version_info[:3]))))
|
||||
|
|
@ -24,24 +46,3 @@ except ImportError:
|
|||
else:
|
||||
if 'DISABLE_UVLOOP' not in os.environ:
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
__all__ = (
|
||||
'Bot',
|
||||
'Dispatcher',
|
||||
'__api_version__',
|
||||
'__version__',
|
||||
'bot',
|
||||
'contrib',
|
||||
'dispatcher',
|
||||
'exceptions',
|
||||
'executor',
|
||||
'filters',
|
||||
'helper',
|
||||
'md',
|
||||
'middlewares',
|
||||
'types',
|
||||
'utils',
|
||||
)
|
||||
|
||||
__version__ = '2.15'
|
||||
__api_version__ = '5.3'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue