From 6431a3fb3db070ddbe5a1ce286e9b375f72b82ad Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 29 Apr 2021 14:23:09 +0200 Subject: [PATCH] Fix some mypy errors --- PFERD/crawler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PFERD/crawler.py b/PFERD/crawler.py index 0092744..31aab5b 100644 --- a/PFERD/crawler.py +++ b/PFERD/crawler.py @@ -49,8 +49,8 @@ class Crawler(ABC): yield bar def crawl_bar(self, path: Path) -> AsyncContextManager[ProgressBar]: - path = escape(str(path)) - desc = f"[bold magenta]Crawling[/bold magenta] {path}" + pathstr = escape(str(path)) + desc = f"[bold magenta]Crawling[/bold magenta] {pathstr}" return self.progress_bar(desc) def download_bar( @@ -58,8 +58,8 @@ class Crawler(ABC): path: Path, size: int, ) -> AsyncContextManager[ProgressBar]: - path = escape(str(path)) - desc = f"[bold green]Downloading[/bold green] {path}" + pathstr = escape(str(path)) + desc = f"[bold green]Downloading[/bold green] {pathstr}" return self.progress_bar(desc, total=size) async def run(self) -> None: