From a72f7c2591677f1d5586dcf0b176f91664cea1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Wed, 13 Dec 2023 16:49:42 +0100 Subject: [PATCH] Fix typing --- scrapy_poet/_request_fingerprinter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() )