From 4b3ffcd644b0e9d3f7180b610f35c4f86024c905 Mon Sep 17 00:00:00 2001 From: Zynix <89567766+alper-han@users.noreply.github.com> Date: Mon, 11 May 2026 09:48:11 +0300 Subject: [PATCH] fix: defer DynamicScheme annotation evaluation (#110) --- src/caelestia/utils/material/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caelestia/utils/material/generator.py b/src/caelestia/utils/material/generator.py index cf241e9..70386d6 100644 --- a/src/caelestia/utils/material/generator.py +++ b/src/caelestia/utils/material/generator.py @@ -18,7 +18,7 @@ from typing import Protocol, Any # subclasses in get_scheme() handle that internally. This Protocol tells the type # checker to expect our specific 3-argument setup instead of the base class signature. class SchemeConstructor(Protocol): - def __call__(self, source_color_hct: Any, is_dark: bool, contrast_level: float) -> DynamicScheme: ... + def __call__(self, source_color_hct: Any, is_dark: bool, contrast_level: float) -> "DynamicScheme": ... try: from materialyoucolor.dynamiccolor.dynamic_scheme import DynamicScheme