Skip to content

Commit cf44044

Browse files
committed
fix: correct docstring formatting in locomotive-engineer exercise
- Add missing colons in parameter types (lines 21, 59) - Fix capitalization in return type description (line 62) - Add missing parameter name in docstring (line 34) Closes #4165
1 parent ff82bc0 commit cf44044

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎exercises/concept/locomotive-engineer/locomotive_engineer.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def fix_list_of_wagons(each_wagons_id, missing_wagons):
1818
1919
Parameters:
2020
each_wagons_id (list[int]): The list of wagons.
21-
missing_wagons (list[int]) The list of missing wagons.
21+
missing_wagons (list[int]): The list of missing wagons.
2222
2323
Returns:
2424
list[int]: The corrected list of wagons.
@@ -31,7 +31,7 @@ def add_missing_stops(route):
3131
3232
Parameters:
3333
route (dict): The dict of routing information.
34-
(dict): arbitrary number of stops.
34+
route (dict): Arbitrary number of stops.
3535
3636
Returns:
3737
dict: The updated route dictionary.
@@ -56,9 +56,9 @@ def fix_wagon_depot(wagons_rows):
5656
"""Fix the list of rows of wagons.
5757
5858
Parameters:
59-
wagons_rows (list[tuple]) The list of rows of wagons.
59+
wagons_rows (list[tuple]): The list of rows of wagons.
6060
6161
Returns:
62-
list[tuple]: the list of rows of wagons.
62+
list[tuple]: The list of rows of wagons.
6363
"""
6464
pass

0 commit comments

Comments
 (0)