sanic_template/utils/other.py
def first(data: Union[List, Tuple]):
    """
    Returns first element from list or tuple.
    """
    if isinstance(data, (list, tuple)) and data:
        return data[0]
    return None

    Returns first element from list or tuple.
    
Returns first element from list or tuple.
Returns first element from list or tuple .
def first(data: Union[List, Tuple]):
    if isinstance(data, (list, tuple)) and data:
        return data[0]
    return None
def first ( data : Union [ List , Tuple ] ) : if isinstance ( data , ( list , tuple ) ) and data : return data [ 0 ] return None
Returns first element from list or tuple.
Returns first element from list or tuple .
"""
    Returns first element from list or tuple.
    """
data
Union[List, Tuple]