From bb2ed3e99291b9bb7d4b9e45d752d53c654c86b7 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Sun, 5 Apr 2026 21:19:10 -0700 Subject: [PATCH] fix: parameterize bare dict type annotations in license module --- circuitforge_core/config/license.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/circuitforge_core/config/license.py b/circuitforge_core/config/license.py index df6696c..a7b173e 100644 --- a/circuitforge_core/config/license.py +++ b/circuitforge_core/config/license.py @@ -27,9 +27,9 @@ _DEFAULT_HEIMDALL_URL = "https://license.circuitforge.tech" _CACHE_TTL_SECONDS = 1800 # 30 minutes # Cache: (key, product) -> (result_dict, expires_at) -_cache: dict[tuple[str, str], tuple[dict, float]] = {} +_cache: dict[tuple[str, str], tuple[dict[str, bool | str], float]] = {} -_INVALID: dict = {"valid": False, "tier": "free", "user_id": ""} +_INVALID: dict[str, bool | str] = {"valid": False, "tier": "free", "user_id": ""} def _heimdall_url(override: str | None) -> str: @@ -40,7 +40,7 @@ def validate_license( product: str, min_tier: str = "free", heimdall_url: str | None = None, -) -> dict: +) -> dict[str, bool | str]: """ Validate CF_LICENSE_KEY against Heimdall for the given product.