pylint/checkers/utils.py
def is_attr_protected(attrname: str) -> bool:
    """return True if attribute name is protected (start with _ and some other
    details), False otherwise.
    """
    return (
        attrname[0] == "_"
        and attrname != "_"
        and not (attrname.startswith("__") and attrname.endswith("__"))
    )
def is_attr_protected(attrname: str) -> bool:
    """return True if attribute name is protected (start with _ and some other
    details), False otherwise.
    """
    return (
        attrname[0] == "_"
        and attrname != "_"
        and not (attrname.startswith("__") and attrname.endswith("__"))
    )
def is_attr_protected ( attrname : str ) -> bool : return ( attrname [ 0 ] == "_" and attrname != "_" and not ( attrname . startswith ( "__" ) and attrname . endswith ( "__" ) ) )
return True if attribute name is protected (start with _ and some other
    details), False otherwise.
return True if attribute name is protected ( start with _ and some other details ) False otherwise .