From cf44044cd17eb714c3e3dc07b9e1c57a6c00f224 Mon Sep 17 00:00:00 2001 From: shuibui Date: Thu, 14 May 2026 02:38:38 +0000 Subject: [PATCH] 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 exercism/python#4165 --- .../concept/locomotive-engineer/locomotive_engineer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/concept/locomotive-engineer/locomotive_engineer.py b/exercises/concept/locomotive-engineer/locomotive_engineer.py index 3a28255fde..d376a8bed3 100644 --- a/exercises/concept/locomotive-engineer/locomotive_engineer.py +++ b/exercises/concept/locomotive-engineer/locomotive_engineer.py @@ -18,7 +18,7 @@ def fix_list_of_wagons(each_wagons_id, missing_wagons): Parameters: each_wagons_id (list[int]): The list of wagons. - missing_wagons (list[int]) The list of missing wagons. + missing_wagons (list[int]): The list of missing wagons. Returns: list[int]: The corrected list of wagons. @@ -31,7 +31,7 @@ def add_missing_stops(route): Parameters: route (dict): The dict of routing information. - (dict): arbitrary number of stops. + route (dict): Arbitrary number of stops. Returns: dict: The updated route dictionary. @@ -56,9 +56,9 @@ def fix_wagon_depot(wagons_rows): """Fix the list of rows of wagons. Parameters: - wagons_rows (list[tuple]) The list of rows of wagons. + wagons_rows (list[tuple]): The list of rows of wagons. Returns: - list[tuple]: the list of rows of wagons. + list[tuple]: The list of rows of wagons. """ pass