MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / preload_module

Method preload_module

lib/sqlalchemy/util/preloaded.py:121–128  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

updateMethod · 0.45

Tested by 1