Skip to main content

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​

NameTypeDescription
olditerable = NoneA collection of string templates used to generate legacy names for each option in the namespace.
**optionsdictA mapping of option names to their corresponding option configuration objects.

Returns​

TypeDescription
dictA dictionary of option objects where each option's legacy names have been populated based on the provided templates.