"docs/EN/source/vscode:/vscode.git/clone" did not exist on "38c40fa07afe74dc3b6c26b260a921e0a47390c6"
Commit 9af24b7e authored by Baber's avatar Baber
Browse files

refactor registry for simplicity and improved maintainability

parent 907f5f28
This diff is collapsed.
...@@ -41,8 +41,8 @@ def _register_all_models(): ...@@ -41,8 +41,8 @@ def _register_all_models():
for name, path in MODEL_MAPPING.items(): for name, path in MODEL_MAPPING.items():
# Only register if not already present (avoids conflicts when modules are imported) # Only register if not already present (avoids conflicts when modules are imported)
if name not in model_registry: if name not in model_registry:
# Register the lazy placeholder directly # Register the lazy placeholder using lazy parameter
model_registry.register(name, path) model_registry.register(name, lazy=path)
# Call registration on module import # Call registration on module import
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment