This commit is contained in:
Lex Berezhny 2020-08-20 10:46:28 -04:00
parent c1803434aa
commit f995ceae8b

View file

@ -179,7 +179,7 @@ class Database:
# seems to only happen when running in PyCharm
# https://github.com/python/cpython/pull/6084#issuecomment-564585446
# TODO: delete this in Python 3.8/3.9?
from concurrent.futures.process import _threads_wakeups
from concurrent.futures.process import _threads_wakeups # pylint: disable=import-outside-toplevel
_threads_wakeups.clear()
async def run(self, func, *args, **kwargs):