Browse Source

Fix flake8's innate hate of monkey patching.

pull/160/head
A5rocks 6 years ago
parent
commit
2b10daca34
  1. 9
      disco/util/runner.py

9
disco/util/runner.py

@ -5,9 +5,9 @@ monkey.patch_all()
# imports from disco (if moved to the top, they will probably break
# due to requiring `gevent`'s monkey patching for asynchronous)
from disco.client import Client, ClientConfig
from disco.bot import Bot, BotConfig
from disco.util.logging import setup_logging
from disco.client import Client, ClientConfig # noqa: E402
from disco.bot import Bot, BotConfig # noqa: E402
from disco.util.logging import setup_logging # noqa: E402
def bot_creator(config: dict = {}, bot: bool = True, autosharded: bool = False, **kwargs):
@ -55,6 +55,3 @@ def bot_creator(config: dict = {}, bot: bool = True, autosharded: bool = False,
return Bot(client, bot_config)
else:
return client

Loading…
Cancel
Save