mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-06 17:53:40 -08:00
style: ruff check + fix
This commit is contained in:
@@ -16,7 +16,7 @@ from ....service.feedback import FeedbackService
|
||||
from ....service.registry.service import MediaRegistryService
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ....service.registry.service import StatBreakdown
|
||||
pass
|
||||
|
||||
|
||||
@click.command(help="Create a full backup of the registry")
|
||||
|
||||
@@ -300,7 +300,7 @@ def _import_data(
|
||||
feedback: FeedbackService,
|
||||
):
|
||||
"""Import data into the registry."""
|
||||
from .....libs.media_api.types import MediaFormat, MediaType
|
||||
from .....libs.media_api.types import MediaType
|
||||
|
||||
imported_count, updated_count, error_count = 0, 0, 0
|
||||
status_map = {status.value: status for status in UserMediaListStatus}
|
||||
|
||||
@@ -3,7 +3,7 @@ Registry search command - search through the local media registry
|
||||
"""
|
||||
|
||||
import json
|
||||
from typing import TYPE_CHECKING, List
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import click
|
||||
from rich.console import Console
|
||||
@@ -21,7 +21,7 @@ from ....service.feedback import FeedbackService
|
||||
from ....service.registry.service import MediaRegistryService
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .....libs.media_api.types import MediaItem, MediaSearchResult
|
||||
from .....libs.media_api.types import MediaSearchResult
|
||||
|
||||
|
||||
@click.command(help="Search through the local media registry")
|
||||
|
||||
Reference in New Issue
Block a user