瀏覽代碼

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