def is_static_method(method, klass):
 for c in klass.mro():
  if (name(method) in c.__dict__):
   return isinstance(c.__dict__[name(method)], staticmethod)
 else:
  return False

def is_static_method ( method , klass ) : for c in klass . mro ( ) : if ( name ( method ) in c . __dict__ ) : return isinstance ( c . __dict__ [ name ( method ) ] , staticmethod ) else : return False
returns true if method is an instance method of klass .