Skip to content

Commit

Permalink
Remove type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Jul 24, 2024
1 parent 8e980fc commit 7587744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapy_playwright/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import functools
import inspect
from typing import Awaitable, Callable
from typing import Callable

Check warning on line 3 in scrapy_playwright/utils.py

View check run for this annotation

Codecov / codecov/patch

scrapy_playwright/utils.py#L1-L3

Added lines #L1 - L3 were not covered by tests

from ._utils import _ThreadedLoopAdapter

Check warning on line 5 in scrapy_playwright/utils.py

View check run for this annotation

Codecov / codecov/patch

scrapy_playwright/utils.py#L5

Added line #L5 was not covered by tests

Expand All @@ -10,7 +10,7 @@ async def _run_async_gen(asyncgen):
yield item

Check warning on line 10 in scrapy_playwright/utils.py

View check run for this annotation

Codecov / codecov/patch

scrapy_playwright/utils.py#L8-L10

Added lines #L8 - L10 were not covered by tests


def use_threaded_loop(callback: Awaitable) -> Callable:
def use_threaded_loop(callback) -> Callable:

Check warning on line 13 in scrapy_playwright/utils.py

View check run for this annotation

Codecov / codecov/patch

scrapy_playwright/utils.py#L13

Added line #L13 was not covered by tests
"""Wrap a coroutine callback so that Playwright coroutines are executed in
the threaded event loop.
Expand Down

0 comments on commit 7587744

Please sign in to comment.