From e4c4203364e27f56206ed06109cd88ad331def73 Mon Sep 17 00:00:00 2001 From: Benexl Date: Tue, 29 Jul 2025 18:13:58 +0300 Subject: [PATCH] style: ruff check + fix --- fastanime/cli/commands/registry/commands/backup.py | 2 +- fastanime/cli/commands/registry/commands/import_.py | 2 +- fastanime/cli/commands/registry/commands/search.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fastanime/cli/commands/registry/commands/backup.py b/fastanime/cli/commands/registry/commands/backup.py index f7c167f..9609e12 100644 --- a/fastanime/cli/commands/registry/commands/backup.py +++ b/fastanime/cli/commands/registry/commands/backup.py @@ -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") diff --git a/fastanime/cli/commands/registry/commands/import_.py b/fastanime/cli/commands/registry/commands/import_.py index afdb85a..f320a29 100644 --- a/fastanime/cli/commands/registry/commands/import_.py +++ b/fastanime/cli/commands/registry/commands/import_.py @@ -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} diff --git a/fastanime/cli/commands/registry/commands/search.py b/fastanime/cli/commands/registry/commands/search.py index b81a9e9..0ebb696 100644 --- a/fastanime/cli/commands/registry/commands/search.py +++ b/fastanime/cli/commands/registry/commands/search.py @@ -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")