mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
Using TYPE_CHECKING for type hints
Moving runtime imports to appropriate locations Using string literal type annotations Importing shared utilities through the utils package
This commit is contained in:
@@ -15,10 +15,13 @@ from typing import (
|
||||
Callable,
|
||||
Awaitable,
|
||||
Tuple,
|
||||
TYPE_CHECKING,
|
||||
)
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from ..processor.queue_handler import QueueHandler
|
||||
if TYPE_CHECKING:
|
||||
from ..processor.queue_handler import QueueHandler
|
||||
|
||||
from ..ffmpeg.ffmpeg_manager import FFmpegManager
|
||||
from ..utils.exceptions import CleanupError
|
||||
|
||||
@@ -192,7 +195,7 @@ class CleanupManager:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
queue_handler: QueueHandler,
|
||||
queue_handler: "QueueHandler",
|
||||
ffmpeg_mgr: Optional[FFmpegManager] = None,
|
||||
strategy: CleanupStrategy = CleanupStrategy.NORMAL,
|
||||
) -> None:
|
||||
|
||||
Reference in New Issue
Block a user