Skip to main content

instantiate

Instantiate class by name.

def instantiate(
name: string,
*args: any,
**kwargs: any
) - > object

Instantiate class by name.

Parameters

NameTypeDescription
namestringThe fully qualified name or symbol path of the class to be instantiated.
*argsanyVariable length argument list passed directly to the class constructor.
**kwargsanyArbitrary keyword arguments passed directly to the class constructor.

Returns

TypeDescription
objectAn instance of the class resolved from the provided name, initialized with the given arguments.