From 93742ecdcfa42ea8f3db4d44da86544bba5c82cc Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 7 Sep 2026 13:36:51 +0000 Subject: [PATCH] Trim: top-level Passkey import in domains.py The import cycle that forced the lazy import no longer exists. --- paskia/domains.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/paskia/domains.py b/paskia/domains.py index 29a58a3..964a414 100644 --- a/paskia/domains.py +++ b/paskia/domains.py @@ -17,6 +17,7 @@ import os from fastapi_vue.hostutil import parse_endpoints from paskia.db.structs import Config, DomainConfig, OriginEntry +from paskia.sansio import Passkey from paskia.util import hostutil from paskia.util.constants import DEFAULT_PORT @@ -61,10 +62,6 @@ class Domain: """Runtime view of one domain: stored config plus derived values.""" def __init__(self, rp_id: str, config: DomainConfig, site_url: str, site_path: str): - # Lazy import: paskia.sansio depends on paskia.db, which used to - # depend on this module (via paskia.oidc_notify). - from paskia.sansio import Passkey # noqa: PLC0415 - self.rp_id = rp_id self.config = config self.site_url = site_url