[ci] auto-format

This commit is contained in:
CrossJoy 2023-06-19 11:20:50 +00:00 committed by github-actions[bot]
parent 8c5a6b0340
commit e61958bb88

View file

@ -57,7 +57,8 @@ import random
import weakref import weakref
from enum import Enum from enum import Enum
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import ba, _ba import ba
import _ba
import ba.internal import ba.internal
import bastd import bastd
from bastd.actor.powerupbox import PowerupBox from bastd.actor.powerupbox import PowerupBox
@ -560,7 +561,7 @@ class NewBotSet(SpazBotSet):
bot_list = [] bot_list = []
ba.print_exception('Error updating bot list: ' + ba.print_exception('Error updating bot list: ' +
str(self._bot_lists[ str(self._bot_lists[
self._bot_update_list])) self._bot_update_list]))
self._bot_update_list = (self._bot_update_list + self._bot_update_list = (self._bot_update_list +
1) % self._bot_list_count 1) % self._bot_list_count
@ -648,11 +649,10 @@ class DummyBotSet(NewBotSet):
except Exception: except Exception:
ba.print_exception('Error updating bot list: ' + ba.print_exception('Error updating bot list: ' +
str(self._bot_lists[ str(self._bot_lists[
self._bot_update_list])) self._bot_update_list]))
self._bot_update_list = (self._bot_update_list + self._bot_update_list = (self._bot_update_list +
1) % self._bot_list_count 1) % self._bot_list_count
except: except:
pass pass
@ -1100,7 +1100,6 @@ class BotsPracticeTab(PracticeTab):
if self._bot_button: if self._bot_button:
tint1, tint2, color = self.check_color() tint1, tint2, color = self.check_color()
ba.buttonwidget( ba.buttonwidget(
edit=self._bot_button, edit=self._bot_button,
texture=ba.gettexture(self.image_array[self._icon_index]), texture=ba.gettexture(self.image_array[self._icon_index]),
@ -1165,7 +1164,6 @@ class BotsPracticeTab(PracticeTab):
return colors return colors
class PowerUpPracticeTab(PracticeTab): class PowerUpPracticeTab(PracticeTab):
"""The about tab in the practice UI""" """The about tab in the practice UI"""
@ -1361,8 +1359,7 @@ class PowerUpPracticeTab(PracticeTab):
i.node.position[1], i.node.position[1],
i.node.position[2] + z) i.node.position[2] + z)
PowerupBox(position=pos, PowerupBox(position=pos,
poweruptype= poweruptype=self.power_list_type
self.power_list_type
[self._icon_index]).autoretain() [self._icon_index]).autoretain()
def _power_window(self) -> None: def _power_window(self) -> None: