def _contains_attribute_definition(line_str: str) -> bool:
    """Returns whether or not a line contains a an dataclass field definition.

    Arguments:
        line_str {str} -- the line content

    Returns:
        bool -- True if there is an attribute definition in the line.
    """
    parts = line_str.split("#", maxsplit=1)
    before_comment = parts[0].strip()

    before_first_equal = before_comment.split("=", maxsplit=1)[0]
    parts = before_first_equal.split(":")
    if len(parts) != 2:
        # For now, I don't think it's possible to have a type annotation contain :
        return False
    attr_name = parts[0]
    attr_type = parts[1]
    return not attr_name.isspace() and not attr_type.isspace()