pylint/checkers/classes.py
def _is_attribute_property(name, klass):
    """ Check if the given attribute *name* is a property
    in the given *klass*.

    It will look for `property` calls or for functions
    with the given name, decorated by `property` or `property`
    subclasses.
    Returns ``True`` if the name is a property in the given klass,
    ``False`` otherwise.
    """

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

    It will look for `property` calls or for functions
    with the given name, decorated by `property` or `property`
    subclasses.
    Returns ``True`` if the name is a property in the given klass,
    ``False`` otherwise.
    """

    try:
        attributes = klass.getattr(name)
    except astroid.NotFoundError:
        return False
    property_name = "{}.property".format(BUILTINS)
    for attr in attributes:
        if attr is astroid.Uninferable:
            continue
        try:
            infered = next(attr.infer())
        except astroid.InferenceError:
            continue
        if isinstance(infered, astroid.FunctionDef) 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 = "{}.property" . format ( BUILTINS ) for attr in attributes : if attr is astroid . Uninferable : continue try : infered = next ( attr . infer ( ) ) except astroid . InferenceError : continue if isinstance ( infered , astroid . FunctionDef ) 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*.

    It will look for `property` calls or for functions
    with the given name, decorated by `property` or `property`
    subclasses.
    Returns ``True`` if the name is a property in the given klass,
    ``False`` otherwise.
Check if the given attribute * name * is a property in the given * klass * .