From 1667c6d2be941d15f4b1a2d61e0944885878cd29 Mon Sep 17 00:00:00 2001 From: Natalie Fearnley Date: Tue, 21 May 2024 04:30:17 -0400 Subject: [PATCH] fixed macrovision / userdb circular import --- sizebot/lib/macrovision.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sizebot/lib/macrovision.py b/sizebot/lib/macrovision.py index 813bb0fd..1b2a1514 100644 --- a/sizebot/lib/macrovision.py +++ b/sizebot/lib/macrovision.py @@ -1,4 +1,7 @@ -from typing import Any +from typing import Any, TYPE_CHECKING +if TYPE_CHECKING: + from sizebot.lib.userdb import User + import base64 from dataclasses import dataclass @@ -9,7 +12,6 @@ from sizebot.lib.digidecimal import Decimal from sizebot.lib.stats import StatBox from sizebot.lib.units import SV -from sizebot.lib.userdb import User from sizebot.lib.utils import url_safe _model_heights = json.loads(pkg_resources.read_text(sizebot.data, "models.json"))