File size: 121 Bytes
b4980c3
 
 
 
 
1
2
3
4
5
6
from typing import Any


def normalize_message(value: Any) -> str:
    return " ".join(str(value or "").split()).strip()