mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix some mypy errors
This commit is contained in:
parent
ac3bfd7388
commit
6431a3fb3d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user