From 93240ffccacffe458988db4a2db16e709ef653a4 Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 5 Oct 2022 13:50:44 +0200 Subject: [PATCH] Small docstring changes --- pyrmv/methods/stop_by_coords.py | 2 +- pyrmv/methods/stop_by_name.py | 2 +- pyrmv/methods/trip_find.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyrmv/methods/stop_by_coords.py b/pyrmv/methods/stop_by_coords.py index ed0b6a0..28f4c16 100644 --- a/pyrmv/methods/stop_by_coords.py +++ b/pyrmv/methods/stop_by_coords.py @@ -26,7 +26,7 @@ def stop_by_coords( """Method returns a list of stops around a given center coordinate. The returned results are ordered by their distance to the center coordinate. - More detailed request is available as raw.stop_by_coords(), however returns dict instead of List[Stop]. + More detailed request is available as `raw.stop_by_coords()`, however returns `dict` instead of `List[Stop]`. ### Args: * access_id (`str`): Access ID for identifying the requesting client. Get your key on [RMV website](https://opendata.rmv.de/site/start.html). diff --git a/pyrmv/methods/stop_by_name.py b/pyrmv/methods/stop_by_name.py index 3276f68..14a6e8d 100644 --- a/pyrmv/methods/stop_by_name.py +++ b/pyrmv/methods/stop_by_name.py @@ -32,7 +32,7 @@ def stop_by_name( of possible matches in the journey planner database. Possible matches might be stops/stations, points of interest and addresses. - More detailed request is available as raw.stop_by_name(), however returns dict instead of List[Stop]. + More detailed request is available as `raw.stop_by_name()`, however returns `dict` instead of `List[Stop]`. ### Args: * access_id (`str`): Access ID for identifying the requesting client. Get your key on [RMV website](https://opendata.rmv.de/site/start.html). diff --git a/pyrmv/methods/trip_find.py b/pyrmv/methods/trip_find.py index aebc514..7dfb3d7 100644 --- a/pyrmv/methods/trip_find.py +++ b/pyrmv/methods/trip_find.py @@ -77,7 +77,7 @@ def trip_find( stop/station IDs or coordinates based on addresses and points of interest validated by the location service or coordinates freely defined by the client. - More detailed request is available as raw.trip_find(), however returns dict instead of List[Trip]. + More detailed request is available as `raw.trip_find()`, however returns `dict` instead of `List[Trip]`. ### Args: * access_id (`str`): Access ID for identifying the requesting client. Get your key on [RMV website](https://opendata.rmv.de/site/start.html). @@ -131,7 +131,7 @@ def trip_find( if real_time_mode == None: real_time_mode = None else: - real_time_mode = (real_time_mode.code).upper() + real_time_mode = real_time_mode.code trips = [] trips_raw = raw_trip_find(