load_extension_classes
Iterates through extension class names in a given namespace and yields the resolved class objects, issuing a warning if a class cannot be imported due to an ImportError or SyntaxError.
def load_extension_classes(
namespace: string
) - > generator
Iterates through a given namespace to resolve and yield extension class objects by their string identifiers. This function is used to dynamically load plugins or extensions while gracefully handling and warning about import or syntax errors for specific classes.
Parameters
| Name | Type | Description |
|---|---|---|
| namespace | string | The entry point namespace or configuration key used to look up extension class names. |
Returns
| Type | Description |
|---|---|
generator | A generator yielding tuples containing the extension name and the resolved class object. |