Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Silence a typing error.

Andrey Rakhmatullinb20995c9d8dd
diff --git a/scrapy/core/scraper.py b/scrapy/core/scraper.py
index 975344103..ac720e03f 100644
--- a/scrapy/core/scraper.py
+++ b/scrapy/core/scraper.py
@@ -193,7 +193,7 @@ class Scraper:
try:
# call the spider middlewares and the request callback with the response
output = await maybe_deferred_to_future(
- self.spidermw.scrape_response(
+ self.spidermw.scrape_response( # type: ignore[arg-type]
self.call_spider, result, request, self.crawler.spider
)
)