(ext_mod: ExternModule)
| 42 | ) |
| 43 | |
| 44 | def _load(ext_mod: ExternModule): |
| 45 | assert isinstance(ext_mod, ExternModule), f"Expected ExternModule, but got: {ext_mod}" |
| 46 | return ext_mod.load() |
| 47 | |
| 48 | mod_attrs = dict(mod.attrs) if mod.attrs else {} |
| 49 | external_mods = mod_attrs.get("external_mods", []) |