--- a/src/eric7/QScintilla/TypingCompleters/CompleterPython.py Sat Apr 29 11:35:32 2023 +0200 +++ b/src/eric7/QScintilla/TypingCompleters/CompleterPython.py Sat Apr 29 11:42:06 2023 +0200 @@ -116,12 +116,8 @@ self.editor.insert("self") self.editor.setCursorPosition(line, col + 4) if self.__insertClosingBrace: - if ( - self.__defRX.fullmatch(txt) is not None - or ( - self.__classRX.fullmatch(txt) is not None - and txt.endswith("(") - ) + if self.__defRX.fullmatch(txt) is not None or ( + self.__classRX.fullmatch(txt) is not None and txt.endswith("(") ): self.editor.insert("):") else: