amsync/obj.py
def type(file: str | bytes) -> Literal[MediaType.LINK, MediaType.BYTES, MediaType.PATH]:
        """
        Checks whether the file is a link, bytes or path
        """

        if isinstance(file, str) and file.startswith('http'):
            return MediaType.LINK

        if isinstance(file, bytes):
            return MediaType.BYTES

        return MediaType.PATH

        Checks whether the file is a link, bytes or path
        
Checks whether the file is a link, bytes or path
Checks whether the file is a link bytes or path
def type(file: str | bytes) -> Literal[MediaType.LINK, MediaType.BYTES, MediaType.PATH]:
        if isinstance(file, str) and file.startswith('http'):
            return MediaType.LINK
        if isinstance(file, bytes):
            return MediaType.BYTES
        return MediaType.PATH
def type ( file : str | bytes ) -> Literal [ MediaType . LINK , MediaType . BYTES , MediaType . PATH ] : if isinstance ( file , str ) and file . startswith ( 'http' ) : return MediaType . LINK if isinstance ( file , bytes ) : return MediaType . BYTES return MediaType . PATH
Checks whether the file is a link, bytes or path
Checks whether the file is a link bytes or path
"""
        Checks whether the file is a link, bytes or path
        """
file
str | bytes