Commit adea943d authored by Hermann Krumrey's avatar Hermann Krumrey
Browse files

Fix style errors with newer mypy version

parent 7c808e61
Loading
Loading
Loading
Loading
+3 −1
Changes for .gitlab-ci.yml: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -9,9 +9,11 @@ default:
  before_script:
    - echo "$SERVER_ACCESS_KEY" > ~/.ssh/id_rsa
    - chmod 0600 ~/.ssh/id_rsa
    - pip install PyQt5
    # TODO Remove this once development stabilizes
    - git clone https://gitlab.namibsun.net/namibsun/python/puffotter -b develop
    - cd puffotter
    - python setup.py install  # TODO Remove this once development stabilizes
    - python setup.py install
    - cd ..
    - rm -rf puffotter

+2 −2
Changes for toktokkie/metadata/helper/functions.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -71,11 +71,11 @@ def get_metadata_class(media_type: Union[str, MediaType]) -> Type[Metadata]:
    if type(media_type) == str:
        media_type = MediaType(media_type)

    return {  # type: ignore
    return {
        Book.media_type(): Book,
        BookSeries.media_type(): BookSeries,
        TvSeries.media_type(): TvSeries,
        Movie.media_type(): Movie,
        VisualNovel.media_type(): VisualNovel,
        Manga.media_type(): Manga
    }[media_type]
    }[media_type]  # type: ignore
+1 −1
Changes for toktokkie/scripts/MetadataSetCommand.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class MetadataSetCommand(Command):

        id_types = [x.value for x in IdType]

        subparser = parser.add_subparsers(required=True, dest="mode")
        subparser = parser.add_subparsers(dest="mode", required=True)

        multi_episode_parser = subparser.add_parser(
            "multi-episode", help="Add a multi-episode to a TV Series"
+3 −1
Changes for toktokkie/scripts/__init__.py: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ from toktokkie.scripts.MangaCreateCommand import MangaCreateCommand
from toktokkie.scripts.MangaUpdateCommand import MangaUpdateCommand
from toktokkie.scripts.MetadataGenCommand import MetadataGenCommand
from toktokkie.scripts.XdccUpdateCommand import XdccUpdateCommand
from toktokkie.scripts.MetadataSetCommand import MetadataSetCommand

try:
    from toktokkie.scripts.GuiCommand import GuiCommand
@@ -43,7 +44,8 @@ toktokkie_commands = [
    MangaUpdateCommand,
    MangaCreateCommand,
    MetadataGenCommand,
    XdccUpdateCommand
    XdccUpdateCommand,
    MetadataSetCommand
]
"""
A list of commands for the toktokkie script