parameters: (cls)
docstring: Generate a wrapper for calling the constructor from pure Python.
          Note the wrapper will only accept positional arguments.
docstring_summary: Generate a wrapper for calling the constructor from pure Python.
          Note the wrapper will only accept positional arguments.
docstring_tokens: Generate a wrapper for calling the constructor from pure Python . Note the wrapper will only accept positional arguments .
function: def _set_init(cls):
          """
          Generate a wrapper for calling the constructor from pure Python.
          Note the wrapper will only accept positional arguments.
          """
          init = cls.class_type.instance_type.methods['__init__']
          init_sig = utils.pysignature(init)
          # get postitional and keyword arguments
          # offset by one to exclude the `self` arg
          args = _getargs(init_sig)[1:]
          cls._ctor_sig = init_sig
          ctor_source = _ctor_template.format(args=', '.join(args))
          glbls = {"__numba_cls_": cls}
          exec_(ctor_source, glbls)
          ctor = glbls['ctor']
          cls._ctor = njit(ctor)
function_tokens: def _set_init ( cls ) : init = cls . class_type . instance_type . methods [ '__init__' ] init_sig = utils . pysignature ( init ) # get postitional and keyword arguments # offset by one to exclude the `self` arg args = _getargs ( init_sig ) [ 1 : ] cls . _ctor_sig = init_sig ctor_source = _ctor_template . format ( args = ', ' . join ( args ) ) glbls = { "__numba_cls_" : cls } exec_ ( ctor_source , glbls ) ctor = glbls [ 'ctor' ] cls . _ctor = njit ( ctor )