Small fix for _get_slot_key().

This commit is contained in:
Andrey Rakhmatullin 2024-05-06 14:31:24 +05:00
parent bd0d4cee88
commit 2cba7896d2
1 changed files with 1 additions and 1 deletions

View File

@ -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])