mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 13:48:09 +00:00
fix: scope a2a alias finder to submodules only
The shim's MetaPathFinder matched the crewai.a2a root, so importlib.reload(crewai.a2a) would swap the shim module for crewai_a2a and drop the shim's __all__ re-exports.
This commit is contained in:
@@ -34,7 +34,7 @@ class _A2AAliasFinder(MetaPathFinder, Loader):
|
||||
path: Sequence[str] | None = None,
|
||||
target: ModuleType | None = None,
|
||||
) -> ModuleSpec | None:
|
||||
if fullname == self._SRC or fullname.startswith(self._SRC + "."):
|
||||
if fullname.startswith(self._SRC + "."):
|
||||
return ModuleSpec(fullname, self)
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user