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
|
yield bar
|
||||||
|
|
||||||
def crawl_bar(self, path: Path) -> AsyncContextManager[ProgressBar]:
|
def crawl_bar(self, path: Path) -> AsyncContextManager[ProgressBar]:
|
||||||
path = escape(str(path))
|
pathstr = escape(str(path))
|
||||||
desc = f"[bold magenta]Crawling[/bold magenta] {path}"
|
desc = f"[bold magenta]Crawling[/bold magenta] {pathstr}"
|
||||||
return self.progress_bar(desc)
|
return self.progress_bar(desc)
|
||||||
|
|
||||||
def download_bar(
|
def download_bar(
|
||||||
@ -58,8 +58,8 @@ class Crawler(ABC):
|
|||||||
path: Path,
|
path: Path,
|
||||||
size: int,
|
size: int,
|
||||||
) -> AsyncContextManager[ProgressBar]:
|
) -> AsyncContextManager[ProgressBar]:
|
||||||
path = escape(str(path))
|
pathstr = escape(str(path))
|
||||||
desc = f"[bold green]Downloading[/bold green] {path}"
|
desc = f"[bold green]Downloading[/bold green] {pathstr}"
|
||||||
return self.progress_bar(desc, total=size)
|
return self.progress_bar(desc, total=size)
|
||||||
|
|
||||||
async def run(self) -> None:
|
async def run(self) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user