chore: move asyncio import to only import when necessary

This commit is contained in:
Matthias 2024-08-09 06:45:08 +02:00
parent d91dee141d
commit ed59f74cb8

View File

@ -1,4 +1,3 @@
import asyncio
import sys
@ -6,4 +5,6 @@ def asyncio_setup() -> None: # pragma: no cover
# Set eventloop for win32 setups
if sys.platform == "win32":
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())