Jelajahi Sumber

missing data type indicator in function definition

tBKwtWS 3 minggu lalu
induk
melakukan
de4b0e924d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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