def subclass(cls):
    """
    Verify all @override methods
    Use a class decorator to find the method's class
    """
    for name, method in cls.__dict__.iteritems():
        if hasattr(method, 'override'):
            found = False
            for base_class in inspect.getmro(cls)[1:]:
                if name in base_class.__dict__:
                    if not method.__doc__:
                        # copy docstring
                        method.__doc__ = base_class.__dict__[name].__doc__
                    found = True
                    break
            assert found, '"%s.%s" not found in any base class' + (cls.__name__, name)
    return cls
dataset/ETHPy150Open NVIDIA/DIGITS/digits/utils/__init__.py/subclass/operator `%` -> `+`