from typing import Sequence
import ast


def _has_dataclass_like_body(body: Sequence[ast.stmt]) -> bool:
    """
    Has at least one dataclass like assignment stmt and doesn't have any
    methods besides __init__.
    """
    found_assignment_stmt = False
    for stmt in body:
        if isinstance(stmt, ast.FunctionDef) and stmt.name == "__init__":
            continue
        elif isinstance(stmt, ast.AnnAssign):
            found_assignment_stmt = True
        else:
            return False
    return found_assignment_stmt