import zlib


def text_decompress(text) -> str:
    """对文本进行解压

    Args:
        text (str or bytes): 待解压文本

    Returns:
        str: 解压后的文本
    """
    return zlib.decompress(text).decode() if type(text).__name__ == "bytes" else text