From c08deb9ff24f9d134c5cd6c3808e8813a5bebeb3 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 6 Oct 2022 12:47:07 +0200 Subject: [PATCH] date and time arguments docstring fixed --- pyrmv/methods/trip_find.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrmv/methods/trip_find.py b/pyrmv/methods/trip_find.py index 7dfb3d7..fe596a0 100644 --- a/pyrmv/methods/trip_find.py +++ b/pyrmv/methods/trip_find.py @@ -103,8 +103,8 @@ def trip_find( * change_time_max (`int`, **optional**): Maximum change time at stop in minutes. Defaults to `None`. * change_time_add (`int`, **optional**): This amount of minutes is added to the change time at each stop. Defaults to `None`. * change_max (`int`, **optional**): Maximum number of changes. In range 0-11. Defaults to `None`. - * date (`str`, **optional**): Sets the start date for which the departures shall be retrieved. Represented in the format `YYYY-MM-DD`. By default the current server date is used. Defaults to `None`. - * time (`str`, **optional**): Sets the start time for which the departures shall be retrieved. Represented in the format `hh:mm[:ss]` in 24h nomenclature. Seconds will be ignored for requests. By default the current server time is used. Defaults to `None`. + * date (`Union[str, datetime]`, **optional**): Sets the start date for which the departures shall be retrieved. Represented in the format `YYYY-MM-DD` or as a datetime object. By default the current server date is used. Defaults to `None`. + * time (`Union[str, datetime]`, **optional**): Sets the start time for which the departures shall be retrieved. Represented in the format `hh:mm[:ss]` in 24h nomenclature or as a datetime object. Seconds will be ignored for requests. By default the current server time is used. Defaults to `None`. * search_arrival (`bool`, **optional**): If set, the date and time parameters specify the arrival time for the trip search instead of the departure time. Defaults to `False`. * trips_after_time (`int`, **optional**): Minimum number of trips after the search time. Sum of `trips_after_time` and `trips_before_time` has to be less or equal 6. Read more about this in HAFAS ReST Documentation. In range 1-6. Defaults to `None`. * trips_before_time (`int`, **optional**): Minimum number of trips before the search time. Sum of `trips_after_time` and `trips_before_time` has to be less or equal 6. Read more about this in HAFAS ReST Documentation. In range 0-6. Defaults to `None`.