def parse_dashed_list(value: str):
    """

    Parameters
    ----------
    value: str
        string with 2 numbers separated by 1 dash

    Returns
    -------
    list
        list from those 2 numbers or `None` if error occurred

    Examples
    --------
    >>> parse_dashed_list('1-5')
    [1, 2, 3, 4, 5]
    """
    dash_pos = value.find('-')
    if dash_pos != -1:
        s = int(value[:dash_pos])
        t = int(value[dash_pos + 1:])
        return list(range(s, t + 1))
    return None