Преглед изворни кода

missing data type indicator in function definition

tBKwtWS пре 3 недеља
родитељ
комит
de4b0e924d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      karel_asset.py

+ 1 - 1
karel_asset.py

@@ -175,7 +175,7 @@ def absolute_move_asset(asset, x:int, y:int):
     return new_asset
 
 # Change the orientation of a passed asset
-def rotate_asset(asset, direction):
+def rotate_asset(asset, direction:str):
     # Relative turn
     if direction == "right" or direction == "left":
         if asset[1][4] == "east":   # East