Namespace
Initializes a collection of options by mapping legacy names to new keys if a template is provided, returning the updated options dictionary.
def Namespace(
__old__: iterable = None,
**options: dict
) - > dict
Configures a set of options with legacy name mappings for backward compatibility.
Parameters
| Name | Type | Description |
|---|---|---|
| old | iterable = None | A collection of string templates used to generate legacy names for each option in the namespace. |
| **options | dict | A mapping of option names to their corresponding option configuration objects. |
Returns
| Type | Description |
|---|---|
dict | A dictionary of option objects where each option's legacy names have been populated based on the provided templates. |