Separate setup() and module_setup().

This commit is contained in:
erinhmclark
2025-02-10 18:07:47 +00:00
parent 2c3d1f591f
commit e97ccf8a73
14 changed files with 18 additions and 18 deletions

View File

@@ -58,7 +58,7 @@ def get_module_lazy(module_name: str, suppress_warnings: bool = False) -> LazyBa
This has all the information about the module, but does not load the module itself or its dependencies
To load an actual module, call .setup() on a laz module
To load an actual module, call .setup() on a lazy module
"""
if module_name in _LAZY_LOADED_MODULES:
@@ -241,8 +241,8 @@ class LazyBaseModule:
# merge the default config with the user config
default_config = dict((k, v['default']) for k, v in self.configs.items() if v.get('default'))
config[self.name] = default_config | config.get(self.name, {})
instance.setup(config)
instance.module_setup()
instance.config_setup(config)
instance.setup()
return instance
def __repr__(self):