pylint/checkers/utils.py
def is_attr_private(attrname: str) -> Optional[Match[str]]:
    """Check that attribute name is private (at least two leading underscores,
    at most one trailing underscore)
    """
    regex = re.compile("^_{2,}.*[^_]+_?$")
    return regex.match(attrname)
def is_attr_private(attrname: str) -> Optional[Match[str]]:
    """Check that attribute name is private (at least two leading underscores,
    at most one trailing underscore)
    """
    regex = re.compile("^_{2,}.*[^_]+_?$")
    return regex.match(attrname)
def is_attr_private ( attrname : str ) -> Optional [ Match [ str ] ] : regex = re . compile ( "^_{2,}.*[^_]+_?$" ) return regex . match ( attrname )
Check that attribute name is private (at least two leading underscores,
    at most one trailing underscore)
Check that attribute name is private ( at least two leading underscores at most one trailing underscore )