Adds the specified modules to the list to load. This method can be used both as a normal function and as a decorator. No change is performed to the decorated object.
(self, *deps: str)
| 119 | self.prefix = prefix |
| 120 | |
| 121 | def preload_module(self, *deps: str) -> Callable[[_FN], _FN]: |
| 122 | """Adds the specified modules to the list to load. |
| 123 | |
| 124 | This method can be used both as a normal function and as a decorator. |
| 125 | No change is performed to the decorated object. |
| 126 | """ |
| 127 | self.module_registry.update(deps) |
| 128 | return lambda fn: fn |
| 129 | |
| 130 | def import_prefix(self, path: str) -> None: |
| 131 | """Resolve all the modules in the registry that start with the |