def propagate(method1, method2):
 if method1:
  for attr in INHERITED_ATTRS:
   if (hasattr(method1, attr) and (not hasattr(method2, attr))):
    setattr(method2, attr, getattr(method1, attr))
 return method2

def propagate ( method1 , method2 ) : if method1 : for attr in INHERITED_ATTRS : if ( hasattr ( method1 , attr ) and ( not hasattr ( method2 , attr ) ) ) : setattr ( method2 , attr , getattr ( method1 , attr ) ) return method2
propagate decorators from method1 to method2 .