Commit adea943d authored by Hermann Krumrey's avatar Hermann Krumrey

Fix style errors with newer mypy version

parent 7c808e61
......@@ -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
......
......@@ -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
......@@ -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"
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment