From 1d8f061af908320356e729833eb193c6d3827294 Mon Sep 17 00:00:00 2001 From: Marlon Costa Date: Sun, 20 Sep 2026 23:43:54 -0300 Subject: [PATCH] fix(base): concrete-module imports for the init-time resolved module base.py resolves during the package root's lazy 's' export, while the root namespace is still initializing: 'from flext_cli import m' bound a partial module and m.Cli raised AttributeError, orphaning the s export fleet-wide (every gen/conform importing flext-cli failed). Import the facade objects from their concrete owner modules instead. --- src/flext_cli/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/flext_cli/base.py b/src/flext_cli/base.py index 6cb9a57e..3d8d2e48 100644 --- a/src/flext_cli/base.py +++ b/src/flext_cli/base.py @@ -9,7 +9,12 @@ from __future__ import annotations -from flext_cli import m, p, t, u +# Concrete-module imports: this module resolves during the package root's +# lazy ``s`` export, when the root namespace is still initializing. +from flext_cli.models import m +from flext_cli.protocols import p +from flext_cli.typings import t +from flext_cli.utilities import u from flext_core import s