def _must_skip(spec, entry, is_type):
 if (not isinstance(spec, type)):
  if (entry in getattr(spec, '__dict__', {})):
   return False
  spec = spec.__class__
 for klass in spec.__mro__:
  result = klass.__dict__.get(entry, DEFAULT)
  if (result is DEFAULT):
   continue
  if isinstance(result, (staticmethod, classmethod)):
   return False
  elif isinstance(getattr(result, '__get__', None), MethodWrapperTypes):
   return is_type
  else:
   return False
 return is_type

def _must_skip ( spec , entry , is_type ) : if ( not isinstance ( spec , type ) ) : if ( entry in getattr ( spec , '__dict__' , { } ) ) : return False spec = spec . __class__ for klass in spec . __mro__ : result = klass . __dict__ . get ( entry , DEFAULT ) if ( result is DEFAULT ) : continue if isinstance ( result , ( staticmethod , classmethod ) ) : return False elif isinstance ( getattr ( result , '__get__' , None ) , MethodWrapperTypes ) : return is_type else : return False return is_type
return whether we should skip the first argument on specs entry attribute .