Commit 3ff9c8b5 authored by Hermann Krumrey's avatar Hermann Krumrey
Browse files

Fix static type errors

parent eea0f9e6
Loading
Loading
Loading
Loading
+1 −1
Changes for bin/manga-dl: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ def main(args: argparse.Namespace):
        for scraper_cls in scrapers:
            if scraper_cls.url_matches(args.url):
                scraper = scraper_cls(
                    _format=args.format, destination=args.out
                    destination=args.out, _format=args.format
                )
                break

+1 −1
Changes for manga_dl/entities/Chapter.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ class Chapter:
        self.destination_dir = destination_dir
        self.format = _format
        self._page_load_callback = page_load_callback
        self._pages = []
        self._pages = []  # type: List[str]

    @property
    def name(self) -> str:
+3 −3
Changes for manga_dl/scrapers/Scraper.py: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -29,15 +29,15 @@ class Scraper:

    def __init__(
            self,
            destination: str,
            _format: str = "cbz",
            destination: Optional[str] = None,
            languages: Optional[Set[str]] = None
    ):
        """
        Initializes the Scraper object
        :param _format: The format in which to store chapters
        :param destination: The destination directory in
                            which to store chapters
        :param _format: The format in which to store chapters
        :param languages: Set of languages for which to check
        """
        self.logger = logging.getLogger(self.__class__.__name__)
@@ -93,7 +93,7 @@ class Scraper:
        elif _id is not None:
            url = self.generate_url(_id)

        chapters = self._load_chapters(url)
        chapters = self._load_chapters(str(url))

        # Both sort steps are necessary!
        chapters.sort(