Open Table Of Contents

types Package

types Package

extensiontype Module

Extension type types.

class numba.exttypes.types.extensiontype.ExtensionType(py_class)

Bases: numba.typesystem.types.NumbaType

Extension type Numba type.

Available to users through MyExtensionType.exttype (or numba.typeof(MyExtensionType).

argnames = ['py_class']
compute_offsets(py_class)
conser = <numba.typesystem.itypesystem.Conser object at 0x2dfef50>
defaults = {}
flags = ['object']
is_extension = True
is_final = False
is_object = True
typename = 'extension'
class numba.exttypes.types.extensiontype.autojit_exttype(py_class)

Bases: numba.exttypes.types.extensiontype.ExtensionType

Type for @autojit extension types

conser = <numba.typesystem.itypesystem.Conser object at 0x2e00190>
defaults = {}
is_autojit_exttype = True
is_object = True
typename = 'autojit_exttype'
class numba.exttypes.types.extensiontype.jit_exttype(py_class)

Bases: numba.exttypes.types.extensiontype.ExtensionType

Type for @jit extension types

conser = <numba.typesystem.itypesystem.Conser object at 0x2e00090>
defaults = {}
is_jit_exttype = True
is_object = True
typename = 'jit_exttype'

methods Module

Extension method types.

class numba.exttypes.types.methods.AutojitMethodType(*args, **kwds)

Bases: numba.typesystem.types.NumbaType

conser = <numba.typesystem.itypesystem.Conser object at 0x2e05710>
defaults = {}
flags = ['object']
is_autojit_extmethod = True
is_object = True
typename = 'autojit_extmethod'
class numba.exttypes.types.methods.ExtMethodType(*args, **kwds)

Bases: numba.typesystem.types.function

argnames = ['return_type', 'args', 'name', 'is_vararg', 'is_class_method', 'is_static_method']
conser = <numba.typesystem.itypesystem.Conser object at 0x2e05490>
defaults = {'is_vararg': False, 'is_class_method': False, 'name': None, 'is_static_method': False}
flags = ['function', 'object']
is_bound_method
is_extmethod = True
is_function = True
is_object = True
typename = 'extmethod'
numba.exttypes.types.methods.drop_self(type)
numba.exttypes.types.methods.equal_signature_args(t1, t2)

Compare method signatures without regarding the ‘self’ type (which is set to the base extension type in the base class, and the derived extension type in the derived class).

numba.exttypes.types.methods.equal_signatures(t1, t2)
numba.exttypes.types.methods.extmethod_to_function(ty)