from typing import Optional


def format_op_params(params: Optional[list]) -> str:
    """format operation params nicely for display"""
    if params is not None:
        return "(" + ", ".join(map(str, params)) + ")" if len(params) > 0 else ""
    return ""