from typing import Optional


def _serialize_comment(prefix: str, comment: Optional[str]) -> str:  # pylint: disable=unsubscriptable-object
    """Serialize a comment, with an optional prefix."""
    return "%s%s" % (prefix, comment) if comment else ""