Procházet zdrojové kódy

missing data type indicator in function definition

tBKwtWS před 3 týdny
rodič
revize
de4b0e924d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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