

def subclass(cls):
    "\n    Verify all @override methods\n    Use a class decorator to find the method's class\n    "
    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__):
                        base_class.__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/VarMisuse@80/134 `method`->`base_class`