Skip to content

Commit

Permalink
Adjust typing for scraping testing utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Feb 27, 2024
1 parent f512b1d commit 36e55c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scraping/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Type
from typing import Any, Type, Union
import time
import threading

Expand Down Expand Up @@ -38,7 +38,7 @@ def parse(self, response: Response, **kwargs: Any) -> Any:
class TestCrawlerProcess(CrawlerRunner):
def crawl(
self,
crawler_or_spidercls: Type[Spider] | str | Crawler,
crawler_or_spidercls: Union[Type[Spider] | str | Crawler],
*args: Any,
**kwargs: Any,
) -> Deferred:
Expand Down

0 comments on commit 36e55c5

Please sign in to comment.