Explorar o código

refactor: update parameter type for run_general_battle function

lizhenxi %!s(int64=2) %!d(string=hai) anos
pai
achega
4f06080736
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tasks/Component/GeneralBattle/general_battle.py

+ 1 - 1
tasks/Component/GeneralBattle/general_battle.py

@@ -20,7 +20,7 @@ class GeneralBattle(GeneralBuff, GeneralBattleAssets):
     使用这个通用的战斗必须要求这个任务的config有config_general_battle
     """
 
-    def run_general_battle(self, config: dict=None, buff: BuffClass or list[BuffClass]=None) -> bool:
+    def run_general_battle(self, config: GeneralBattleConfig=None, buff: BuffClass or list[BuffClass]=None) -> bool:
         """
         运行脚本
         :return: