Commit 686e10fc authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by Tomeu Vizoso
Browse files

Dont complain if another base has implemented the method
parent 9f34d120
......@@ -99,7 +99,8 @@ class MetaClassHelper(object):
for vfunc_info in base.__info__.get_vfuncs():
vfunc = getattr(cls, 'do_' + vfunc_info.get_name(), None)
if vfunc is None and isinstance(base.__info__, InterfaceInfo):
if vfunc is None and isinstance(base.__info__, InterfaceInfo) and \
not hasattr(cls, vfunc_info.get_name()):
raise TypeError('Class implementing %s.%s should implement '
'the method do_%s()' % (base.__info__.get_namespace(),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment