Creator
- create(name, base, **kwargs)
Creates a new class named name, which inherits from the base class, and registers it into the global namespace of the creator module. Any optional kwargs provided to this function will be set as attributes of the new class.
- Parameters
name (str) – The name of the new class to create.
base (Union[type, object]) – A type or an object from which to inherit.
kwargs (Optional) – One or more keyword arguments to add to the new class as attributes, optional. If a kwarg is an instance, it will be added as a class attribute. If a kwarg is a class, it will be instantiated and added as an instance attribute.
- Returns
Nothing.
- Return type
None