From 28827454772dccb9dccce07b107bbf56300a3c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=81rti=C5=86=C5=A1=20Kristaps=20Mickus?= <64271878+MartinsKMickus@users.noreply.github.com> Date: Thu, 19 Jun 2025 17:09:23 +0300 Subject: [PATCH] Fix IDE warnings of return when error This fixes warnings generated by IDEs that element actions might return None in case of soft assert and later called with next actions. --- testui/elements/testui_element.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testui/elements/testui_element.py b/testui/elements/testui_element.py index 1a983ce..0fbef4a 100644 --- a/testui/elements/testui_element.py +++ b/testui/elements/testui_element.py @@ -99,6 +99,7 @@ def __show_error(self, exception): :param exception: exception """ testui_error(self.testui_driver, exception) + return self def get(self, index): """