sob/model.py
def parse_bytes(data: Union[str, bytes]) -> Optional[bytes]:
        """
        Un-marshal a base-64 encoded string into bytes
        """
        unmarshalled_data: Optional[bytes]
        if data is None:
            unmarshalled_data = data
        elif isinstance(data, str):
            unmarshalled_data = b64decode(data)
        elif isinstance(data, bytes):
            unmarshalled_data = data
        else:
            raise TypeError(
                "`data` must be a base64 encoded `str` or `bytes`--not "
                f"`{qualified_name(type(data))}`"
            )
        return unmarshalled_data

        Un-marshal a base-64 encoded string into bytes
        
Un-marshal a base-64 encoded string into bytes
Un - marshal a base - 64 encoded string into bytes
def parse_bytes(data: Union[str, bytes]) -> Optional[bytes]:
        unmarshalled_data: Optional[bytes]
        if data is None:
            unmarshalled_data = data
        elif isinstance(data, str):
            unmarshalled_data = b64decode(data)
        elif isinstance(data, bytes):
            unmarshalled_data = data
        else:
            raise TypeError(
                "`data` must be a base64 encoded `str` or `bytes`--not "
                f"`{qualified_name(type(data))}`"
            )
        return unmarshalled_data
def parse_bytes ( data : Union [ str , bytes ] ) -> Optional [ bytes ] : unmarshalled_data : Optional [ bytes ] if data is None : unmarshalled_data = data elif isinstance ( data , str ) : unmarshalled_data = b64decode ( data ) elif isinstance ( data , bytes ) : unmarshalled_data = data else : raise TypeError ( "`data` must be a base64 encoded `str` or `bytes`--not " f"`{qualified_name(type(data))}`" ) return unmarshalled_data
Un-marshal a base-64 encoded string into bytes
Un - marshal a base - 64 encoded string into bytes
"""
        Un-marshal a base-64 encoded string into bytes
        """
data
Union[str, bytes]