from INDIGO.exceptions import OverrideError


def override(interface_class):
    # assert im overriding an existing method
    def overrider(method):
        if method.__name__ in dir(interface_class):
            return method
        else:
            raise OverrideError(method.__name__, interface_class.__name__)

    return overrider

c85128a28302370f395042e0c2c7f0a80440a6dd
<mask token>

<mask token>


def override(interface_class):

    def overrider(method):
        if method.__name__ in dir(interface_class):
            return method
        else:
            raise OverrideError(method.__name__, interface_class.__name__)
    return overrider

from INDIGO.exceptions import OverrideError


def override(interface_class):

    def overrider(method):
        if method.__name__ in dir(interface_class):
            return method
        else:
            raise OverrideError(method.__name__, interface_class.__name__)
    return overrider

from INDIGO.exceptions import OverrideError


def override(interface_class):
    # assert im overriding an existing method
    def overrider(method):
        if method.__name__ in dir(interface_class):
            return method
        else:
            raise OverrideError(method.__name__, interface_class.__name__)

    return overrider
