unbyte

function of dascore.utils.misc source

unbyte(
    byte_or_str: bytes | str[<class ’bytes, str] ,
)-> ‘str’

Ensure a string is given by str or possibly bytes.