From dd99e60afddbbe91372c53565a7e4679ac838914 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 11 Jun 2024 14:58:04 +0200 Subject: [PATCH] fix: circular input --- .../utils/support_classes/download_result.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/music_kraken/utils/support_classes/download_result.py b/music_kraken/utils/support_classes/download_result.py index 5458a34..67cb1c1 100644 --- a/music_kraken/utils/support_classes/download_result.py +++ b/music_kraken/utils/support_classes/download_result.py @@ -1,9 +1,13 @@ -from dataclasses import dataclass, field -from typing import List, Tuple +from __future__ import annotations -from ...utils.config import main_settings, logging_settings +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, List, Tuple + +if TYPE_CHECKING: + from ...objects import Target + +from ...utils.config import logging_settings, main_settings from ...utils.enums.colors import BColors -from ...objects import Target UNIT_PREFIXES: List[str] = ["", "k", "m", "g", "t"] UNIT_DIVISOR = 1024