diff --git a/scrapy_poet/_request_fingerprinter.py b/scrapy_poet/_request_fingerprinter.py index 7f1c2db4..674b3b81 100644 --- a/scrapy_poet/_request_fingerprinter.py +++ b/scrapy_poet/_request_fingerprinter.py @@ -77,7 +77,7 @@ def __init__(self, crawler: Crawler) -> None: settings=crawler.settings, crawler=crawler, ) - self._callback_cache: Dict[Callable, bytes] = {} + self._callback_cache: Dict[Callable, Optional[bytes]] = {} self._request_cache: "WeakKeyDictionary[Request, bytes]" = ( WeakKeyDictionary() )