clean: keep one-line docstring for consistency

This commit is contained in:
2025-12-15 21:06:55 +01:00
parent 3a19db2cf0
commit 4f49a081c9
2 changed files with 3 additions and 15 deletions

View File

@@ -7,11 +7,7 @@ from pathlib import Path
def load_media_info(path: Path, activation_hex: str | None = None) -> tuple[float | None, list[dict]]: def load_media_info(path: Path, activation_hex: str | None = None) -> tuple[float | None, list[dict]]:
"""Load media information including duration and chapters using ffprobe. """Load media information including duration and chapters using ffprobe."""
Returns:
Tuple of (duration in seconds, list of chapter dicts with start_time, end_time, title)
"""
if not shutil.which("ffprobe"): if not shutil.which("ffprobe"):
return None, [] return None, []

View File

@@ -7,11 +7,7 @@ from .constants import PROGRESS_COLUMN_INDEX
def create_title_sort_key(reverse: bool = False) -> tuple[Callable, bool]: def create_title_sort_key(reverse: bool = False) -> tuple[Callable, bool]:
"""Create a sort key function for sorting by title. """Create a sort key function for sorting by title."""
Returns:
Tuple of (sort_key_function, reverse_flag)
"""
def title_key(row_values): def title_key(row_values):
title_cell = row_values[0] title_cell = row_values[0]
if isinstance(title_cell, str): if isinstance(title_cell, str):
@@ -23,11 +19,7 @@ def create_title_sort_key(reverse: bool = False) -> tuple[Callable, bool]:
def create_progress_sort_key(progress_column_index: int = PROGRESS_COLUMN_INDEX, reverse: bool = False) -> tuple[Callable, bool]: def create_progress_sort_key(progress_column_index: int = PROGRESS_COLUMN_INDEX, reverse: bool = False) -> tuple[Callable, bool]:
"""Create a sort key function for sorting by progress percentage. """Create a sort key function for sorting by progress percentage."""
Returns:
Tuple of (sort_key_function, reverse_flag)
"""
def progress_key(row_values): def progress_key(row_values):
progress_cell = row_values[progress_column_index] progress_cell = row_values[progress_column_index]
if isinstance(progress_cell, str): if isinstance(progress_cell, str):