Scrapy, a fast high-level web crawling & scraping framework for Python.
Small fix for _get_slot_key().
Andrey Rakhmatullin2cba7896d26d
diff --git a/scrapy/core/downloader/__init__.py b/scrapy/core/downloader/__init__.pyindex f88da41ea..98e1af6fb 100644--- a/scrapy/core/downloader/__init__.py+++ b/scrapy/core/downloader/__init__.py@@ -143,7 +143,7 @@ class Downloader:return key, self.slots[key]- def _get_slot_key(self, request: Request, spider: Any) -> str:+ def _get_slot_key(self, request: Request, spider: Optional[Spider]) -> str:if self.DOWNLOAD_SLOT in request.meta:return cast(str, request.meta[self.DOWNLOAD_SLOT])