Skip to content

Commit 58961ce

Browse files
authored
fix: 🐛 load_profile
1 parent 9f04005 commit 58961ce

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

injection/_core/module.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -817,11 +817,7 @@ def unlock(self) -> Self:
817817
return self
818818

819819
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-
820+
modules = (self.from_name(name) for name in names)
825821
self.unlock().init_modules(*modules)
826822

827823
@contextmanager

0 commit comments

Comments
 (0)