silence winloop errors

This commit is contained in:
monosans
2025-01-09 15:53:32 +03:00
parent ae056601be
commit 8c6368f095
+2
View File
@@ -68,6 +68,8 @@ def get_async_run() -> Callable[[Coroutine[Any, Any, T]], T]:
except ImportError:
pass
else:
# https://github.com/Vizonex/Winloop/issues/32
logging.getLogger("asyncio").setLevel(logging.CRITICAL)
try:
return winloop.run # type: ignore[no-any-return, unused-ignore]
except AttributeError: