style: module level dunders should be placed before any import statements

This commit is contained in:
Oleg A 2021-03-27 13:43:32 +03:00
parent 100848b889
commit 6d797524c4

View file

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