def get_taf_alt_ice_turb(wxdata: [str]) -> ([str], str, [str], [str]):  # type: ignore
    """
    Returns the report list and removed: Altimeter string, Icing list, Turbulance list
    """
    altimeter = ''
    icing, turbulence = [], []
    for i, item in reversed(list(enumerate(wxdata))):
        if len(item) > 6 and item.startswith('QNH') and item[3:7].isdigit():
            altimeter = wxdata.pop(i)[3:7]
        elif item.isdigit():
            if item[0] == '6':
                icing.append(wxdata.pop(i))
            elif item[0] == '5':
                turbulence.append(wxdata.pop(i))
    return wxdata, altimeter, icing, turbulence
def get_taf_alt_ice_turb ( wxdata : [ str ] ) -> ( [ str ] , str , [ str ] , [ str ] ) : altimeter = '' icing , turbulence = [ ] , [ ] for i , item in reversed ( list ( enumerate ( wxdata ) ) ) : if len ( item ) > 6 and item . startswith ( 'QNH' ) and item [ 3 : 7 ] . isdigit ( ) : altimeter = wxdata . pop ( i ) [ 3 : 7 ] elif item . isdigit ( ) : if item [ 0 ] == '6' : icing . append ( wxdata . pop ( i ) ) elif item [ 0 ] == '5' : turbulence . append ( wxdata . pop ( i ) ) return wxdata , altimeter , icing , turbulence
Returns the report list and removed: Altimeter string, Icing list, Turbulance list