From 7587744a0d5d51aeb2f39387ce31dd7838b13745 Mon Sep 17 00:00:00 2001 From: Eugenio Lacuesta Date: Wed, 24 Jul 2024 18:54:04 -0300 Subject: [PATCH] Remove type annotation --- scrapy_playwright/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy_playwright/utils.py b/scrapy_playwright/utils.py index 48a0350f..a40a7e19 100644 --- a/scrapy_playwright/utils.py +++ b/scrapy_playwright/utils.py @@ -1,6 +1,6 @@ import functools import inspect -from typing import Awaitable, Callable +from typing import Callable from ._utils import _ThreadedLoopAdapter @@ -10,7 +10,7 @@ async def _run_async_gen(asyncgen): yield item -def use_threaded_loop(callback: Awaitable) -> Callable: +def use_threaded_loop(callback) -> Callable: """Wrap a coroutine callback so that Playwright coroutines are executed in the threaded event loop.