def METHOD_NAME(offset: str) -> timedelta:
    assert len(offset) == 5
    sign = offset[0]
    hours = int(offset[1:3])
    minutes = int(offset[3:5])
    if sign == "-":
        hours = -hours
        minutes = -minutes
    else:
        assert sign == "+"
    return timedelta(hours=hours, minutes=minutes)