def valid_station(station: str):
    """
    Checks the validity of a station ident

    This function doesn't return anything. It merely raises a BadStation error if needed
    """
    station = station.strip()
    if len(station) != 4:
        raise BadStation('ICAO station idents must be four characters long')
    uses_na_format(station)
def valid_station ( station : str ) : station = station . strip ( ) if len ( station ) != 4 : raise BadStation ( 'ICAO station idents must be four characters long' ) uses_na_format ( station )
Checks the validity of a station ident

    This function doesn't return anything. It merely raises a BadStation error if needed