from numba.core import types, config
from numba.core import errors
from numba.experimental.jitclass.base import register_class_type, ClassBuilder
import warnings


def jitclass(spec):
    """
    A decorator for creating a jitclass.

    **arguments**:

    - spec:
        Specifies the types of each field on this class.
        Must be a dictionary or a sequence.
        With a dictionary, use collections.OrderedDict for stable ordering.
        With a sequence, it must contain 2-tuples of (fieldname, fieldtype).

    **returns**:

    A callable that takes a class object, which will be compiled.
    """

    def wrap(cls):
        if config.DISABLE_JIT:
            return cls
        else:
            return register_class_type(cls, spec, types.ClassType, ClassBuilder)

    return wrap

@@ -34,38 +34,8 @@
 fig%0A
-from numba.core import errors%0A
 from
@@ -113,24 +113,8 @@
 der%0A
-import warnings%0A
 %0A%0Ade

Remove unused imports