File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def predictions_for_stop(
92
92
route_id : str ,
93
93
direction_id : str | None = None ,
94
94
agency_id : str | None = None ,
95
- ) -> dict [str , Any ]:
95
+ ) -> list [ dict [str , Any ] ]:
96
96
agency_id = agency_id or self .agency_id
97
97
if not agency_id :
98
98
raise NextBusValidationError ("Agency ID is required" )
@@ -105,7 +105,8 @@ def predictions_for_stop(
105
105
f"agencies/{ agency_id } /routes/{ route_id } /stops/{ stop_id } /predictions" ,
106
106
params ,
107
107
)
108
- return cast (dict [str , Any ], result )
108
+
109
+ return cast (list [dict [str , Any ]], result )
109
110
110
111
def _fetch_api_key (self ) -> str :
111
112
response = requests .get (self .referer )
Original file line number Diff line number Diff line change 6
6
7
7
setup (
8
8
name = "py_nextbusnext" ,
9
- version = "2.0.2 " ,
9
+ version = "2.0.3 " ,
10
10
author = "ViViDboarder" ,
11
11
description = "Minimalistic Python client for the NextBus public API for real-time transit "
12
12
"arrival data" ,
You can’t perform that action at this time.
0 commit comments