From f512b1d63e7735a3c95079f183a7f5bc124e4b9f Mon Sep 17 00:00:00 2001 From: Sultan Iman Date: Tue, 27 Feb 2024 17:07:51 +0100 Subject: [PATCH] Adjust typing for scraping testing utils --- tests/scraping/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scraping/utils.py b/tests/scraping/utils.py index 3f81249de..4b16fed8c 100644 --- a/tests/scraping/utils.py +++ b/tests/scraping/utils.py @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, Type import time import threading @@ -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: Type[Spider] | str | Crawler, *args: Any, **kwargs: Any, ) -> Deferred: