Silenced some warnings in VSCode

This commit is contained in:
Profitroll 2022-10-06 12:49:48 +02:00
parent 9da83c878e
commit 84feae2d2f
3 changed files with 20 additions and 20 deletions

View File

@ -15,15 +15,15 @@ except ImportError:
def board_arrival( def board_arrival(
access_id: str, access_id: str,
id: str = None, id: str = None, # type: ignore
id_ext: str = None, id_ext: str = None, # type: ignore
direction: Union[str, Stop, StopTrip] = None, direction: Union[str, Stop, StopTrip] = None, # type: ignore
date: Union[str, datetime] = None, date: Union[str, datetime] = None, # type: ignore
time: Union[str, datetime] = None, time: Union[str, datetime] = None, # type: ignore
duration: Union[int, timedelta] = 60, duration: Union[int, timedelta] = 60,
journeys_max: int = -1, journeys_max: int = -1,
operators: Union[str, list] = None, operators: Union[str, list] = None, # type: ignore
lines: Union[str, list] = None, lines: Union[str, list] = None, # type: ignore
passlist: bool = False, passlist: bool = False,
board_type: Literal[BoardArrivalType.ARR, BoardArrivalType.ARR_EQUIVS, BoardArrivalType.ARR_MAST, BoardArrivalType.ARR_STATION] = BoardArrivalType.ARR, board_type: Literal[BoardArrivalType.ARR, BoardArrivalType.ARR_EQUIVS, BoardArrivalType.ARR_MAST, BoardArrivalType.ARR_STATION] = BoardArrivalType.ARR,
) -> BoardArrival: ) -> BoardArrival:

View File

@ -15,15 +15,15 @@ except ImportError:
def board_departure( def board_departure(
access_id: str, access_id: str,
id: str = None, id: str = None, # type: ignore
id_ext: str = None, id_ext: str = None, # type: ignore
direction: Union[str, Stop, StopTrip] = None, direction: Union[str, Stop, StopTrip] = None, # type: ignore
date: Union[str, datetime] = None, date: Union[str, datetime] = None, # type: ignore
time: Union[str, datetime] = None, time: Union[str, datetime] = None, # type: ignore
duration: Union[int, timedelta] = 60, duration: Union[int, timedelta] = 60,
journeys_max: int = -1, journeys_max: int = -1,
operators: Union[str, list] = None, operators: Union[str, list] = None, # type: ignore
lines: Union[str, list] = None, lines: Union[str, list] = None, # type: ignore
passlist: bool = False, passlist: bool = False,
board_type: Literal[BoardDepartureType.DEP, BoardDepartureType.DEP_EQUIVS, BoardDepartureType.DEP_MAST, BoardDepartureType.DEP_STATION] = BoardDepartureType.DEP, board_type: Literal[BoardDepartureType.DEP, BoardDepartureType.DEP_EQUIVS, BoardDepartureType.DEP_MAST, BoardDepartureType.DEP_STATION] = BoardDepartureType.DEP,
) -> BoardDeparture: ) -> BoardDeparture:

View File

@ -15,12 +15,12 @@ def journey_detail(
access_id: str, access_id: str,
id: str, id: str,
date: Union[str, datetime] = None, date: Union[str, datetime] = None, # type: ignore
real_time_mode: Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT] = None, real_time_mode: Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT] = None, # type: ignore
from_id: str = None, from_id: str = None, # type: ignore
from_index: int = None, from_index: int = None, # type: ignore
to_id: str = None, to_id: str = None, # type: ignore
to_index: int = None to_index: int = None # type: ignore
) -> Journey: ) -> Journey:
"""The journey_detail method will deliver information about the complete route of a vehicle. The journey """The journey_detail method will deliver information about the complete route of a vehicle. The journey
identifier is part of a trip or `board_departure` response. It contains a list of all stops/stations of this journey identifier is part of a trip or `board_departure` response. It contains a list of all stops/stations of this journey