We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
load_profile
1 parent 9f04005 commit 58961ceCopy full SHA for 58961ce
1 file changed
injection/_core/module.py
@@ -817,11 +817,7 @@ def unlock(self) -> Self:
817
return self
818
819
def load_profile(self, *names: str) -> ContextManager[Self]:
820
- modules = tuple(self.from_name(name) for name in names)
821
-
822
- for module in modules:
823
- module.unlock()
824
+ modules = (self.from_name(name) for name in names)
825
self.unlock().init_modules(*modules)
826
827
@contextmanager
0 commit comments