def _is_attribute_property(name, klass):
 try:
  attributes = klass.getattr(name)
 except astroid.NotFoundError:
  return False
 property_name = '{0}.property'.format(BUILTINS)
 for attr in attributes:
  try:
   infered = next(attr.infer())
  except astroid.InferenceError:
   continue
  if (isinstance(infered, astroid.Function) and decorated_with_property(infered)):
   return True
  if (infered.pytype() == property_name):
   return True
 return False

def _is_attribute_property ( name , klass ) : try : attributes = klass . getattr ( name ) except astroid . NotFoundError : return False property_name = '{0}.property' . format ( BUILTINS ) for attr in attributes : try : infered = next ( attr . infer ( ) ) except astroid . InferenceError : continue if ( isinstance ( infered , astroid . Function ) and decorated_with_property ( infered ) ) : return True if ( infered . pytype ( ) == property_name ) : return True return False
check if the given attribute *name* is a property in the given *klass* .