diff --git a/AutoLib.py b/AutoLib.py index 100be45..721a97e 100644 --- a/AutoLib.py +++ b/AutoLib.py @@ -30,7 +30,7 @@ class AutoLib(MsgBase): def __init__( self, input_queue: queue.Queue, - output_queue: queue.Queue, + output_queue: queue.Queue ): super().__init__(input_queue, output_queue) @@ -114,7 +114,7 @@ class AutoLib(MsgBase): def __waitResponseLoad( - self, + self ) -> bool: # wait for page load @@ -154,7 +154,7 @@ class AutoLib(MsgBase): self, username: str, password: str, - reserve_info: dict, + reserve_info: dict ) -> int: # result : 0 - success, 1 - failed, 2 - passed @@ -202,7 +202,7 @@ class AutoLib(MsgBase): def run( self, system_config_reader: ConfigReader, - users_config_reader: ConfigReader, + users_config_reader: ConfigReader ): self.__system_config_reader = system_config_reader @@ -245,7 +245,7 @@ class AutoLib(MsgBase): def close( - self, + self ) -> bool: if self.__driver: diff --git a/LibCheckout.py b/LibCheckout.py index be4ba7a..9693b8c 100644 --- a/LibCheckout.py +++ b/LibCheckout.py @@ -34,7 +34,7 @@ class LibCheckout(LibOperator): def _waitResponseLoad( - self, + self ) -> bool: pass \ No newline at end of file diff --git a/LibLogin.py b/LibLogin.py index 2624291..403bc0b 100644 --- a/LibLogin.py +++ b/LibLogin.py @@ -36,7 +36,7 @@ class LibLogin(LibOperator): def _waitResponseLoad( - self, + self ) -> bool: # wait to verify login success @@ -59,7 +59,7 @@ class LibLogin(LibOperator): def __fillLogInElements( self, username: str, - password: str, + password: str ) -> bool: # ensure elements presence and fill them @@ -77,7 +77,7 @@ class LibLogin(LibOperator): def __autoRecognizeCaptcha( - self, + self ) -> str: # auto recognize captcha @@ -99,7 +99,7 @@ class LibLogin(LibOperator): def __manualRecognizeCaptcha( - self, + self ) -> str: # manual recognize captcha @@ -117,7 +117,7 @@ class LibLogin(LibOperator): def __refreshCaptcha( - self, + self ): # refresh captcha @@ -136,7 +136,7 @@ class LibLogin(LibOperator): def __solveCaptcha( self, - auto_captcha: bool = True, + auto_captcha: bool = True ) -> str: max_attempts = 5 @@ -155,7 +155,7 @@ class LibLogin(LibOperator): def __fillCaptchaElement( self, - captcha_text: str, + captcha_text: str ) -> bool: try: @@ -174,7 +174,7 @@ class LibLogin(LibOperator): username: str, password: str, max_attempts: int = 5, - auto_captcha: bool = True, + auto_captcha: bool = True ) -> bool: if self.__driver is None: diff --git a/LibLogout.py b/LibLogout.py index f123d7d..8a09987 100644 --- a/LibLogout.py +++ b/LibLogout.py @@ -22,7 +22,7 @@ class LibLogout(LibOperator): self, input_queue: queue.Queue, output_queue: queue.Queue, - driver, + driver ): super().__init__(input_queue, output_queue) @@ -31,7 +31,7 @@ class LibLogout(LibOperator): def _waitResponseLoad( - self, + self ) -> bool: return True @@ -39,7 +39,7 @@ class LibLogout(LibOperator): def logout( self, - username: str, + username: str ) -> bool: if self.__driver is None: diff --git a/LibOperator.py b/LibOperator.py index 81851c3..883744f 100644 --- a/LibOperator.py +++ b/LibOperator.py @@ -17,14 +17,14 @@ class LibOperator(MsgBase): def __init__( self, input_queue: queue.Queue, - output_queue: queue.Queue, + output_queue: queue.Queue ): super().__init__(input_queue, output_queue) def _waitResponseLoad( - self, + self ) -> bool: pass diff --git a/LibRenew.py b/LibRenew.py index 5df4450..dbf6373 100644 --- a/LibRenew.py +++ b/LibRenew.py @@ -28,7 +28,7 @@ class LibRenew(LibOperator): def _waitResponseLoad( - self, + self ) -> bool: pass \ No newline at end of file diff --git a/LibReserve.py b/LibReserve.py index c9475e2..daf9859 100644 --- a/LibReserve.py +++ b/LibReserve.py @@ -265,7 +265,7 @@ class LibReserve(LibOperator): trigger_locator: tuple, fail_msg: str, success_msg: str, - option_locator: tuple = None, + option_locator: tuple = None ) -> bool: try: diff --git a/MsgBase.py b/MsgBase.py index 6a8ca56..94f2172 100644 --- a/MsgBase.py +++ b/MsgBase.py @@ -16,7 +16,7 @@ class MsgBase: def __init__( self, input_queue: queue.Queue, - output_queue: queue.Queue, + output_queue: queue.Queue ): self._class_name = self.__class__.__name__ @@ -43,7 +43,7 @@ class MsgBase: def _waitMsg( self, - timeout: float = 1.0, + timeout: float = 1.0 ) -> str: try: @@ -55,7 +55,7 @@ class MsgBase: def _inputMsg( self, - timeout: float = 1.0, + timeout: float = 1.0 ) -> bool: try: diff --git a/gui/ALConfigWidget.py b/gui/ALConfigWidget.py index 73a3f36..f467ca9 100644 --- a/gui/ALConfigWidget.py +++ b/gui/ALConfigWidget.py @@ -569,7 +569,7 @@ class ALConfigWidget(QWidget, Ui_ALConfigWidget): @Slot() def onFloorComboBoxCurrentIndexChanged( - self, + self ): floor = self.FloorComboBox.currentText() diff --git a/gui/ALMainWindow.py b/gui/ALMainWindow.py index 6a110d5..5f7dc04 100644 --- a/gui/ALMainWindow.py +++ b/gui/ALMainWindow.py @@ -163,7 +163,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): def closeEvent( self, - event: QCloseEvent, + event: QCloseEvent ): if self.__timer and self.__timer.isActive(): @@ -175,7 +175,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): def appendToTextEdit( self, - text: str, + text: str ): cursor = self.MessageIOTextEdit.textCursor() @@ -200,7 +200,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): self, config_button_enabled: bool, start_button_enabled: bool, - stop_button_enabled: bool, + stop_button_enabled: bool ): self.ConfigButton.setEnabled(config_button_enabled) @@ -210,7 +210,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): @Slot() def showMsg( self, - msg: str, + msg: str ): self.appendToTextEdit(f"[{self.__class_name:<12}] >>> : {msg}") @@ -218,7 +218,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): @Slot() def showTrace( self, - msg: str, + msg: str ): timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) @@ -226,7 +226,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): @Slot() def pollMsgQueue( - self, + self ): try: @@ -239,7 +239,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): @Slot(dict) def onConfigWidgetClosed( self, - config_paths: dict, + config_paths: dict ): self.__alConfigWidget = None @@ -250,7 +250,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): @Slot() def onConfigButtonClicked( - self, + self ): if self.__alConfigWidget is None: @@ -268,7 +268,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): @Slot() def onStartButtonClicked( - self, + self ): self.setControlButtons(False, False, True)