Skip to content

Commit

Permalink
Resolve Mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley van Lee committed Oct 4, 2024
1 parent 50d4881 commit c8a9712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapy_webarchive/downloadermiddlewares.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
from typing import Iterable
from typing import Iterable, Union
from urllib.parse import urlparse

from scrapy import signals
Expand Down Expand Up @@ -45,6 +45,7 @@ def from_crawler(cls, crawler: Crawler) -> Self:

def spider_opened(self, spider: Spider) -> None:
tp = {"timeout": self.timeout}
self.wacz: Union[WaczFile, MultiWaczFile]

if len(self.wacz_urls) == 1:
spider.logger.info(f"[WACZDownloader] Opening WACZ {self.wacz_urls[0]}")
Expand Down

0 comments on commit c8a9712

Please sign in to comment.