diff -r e440aaf179ce -r 64157aeb0312 src/eric7/QScintilla/TypingCompleters/CompleterPython.py --- a/src/eric7/QScintilla/TypingCompleters/CompleterPython.py Wed Dec 20 19:28:22 2023 +0100 +++ b/src/eric7/QScintilla/TypingCompleters/CompleterPython.py Thu Dec 21 12:03:40 2023 +0100 @@ -26,8 +26,10 @@ """ Constructor - @param editor reference to the editor object (QScintilla.Editor) - @param parent reference to the parent object (QObject) + @param editor reference to the editor object + @type QScintilla.Editor + @param parent reference to the parent object + @type QObject """ super().__init__(editor, parent) @@ -85,7 +87,8 @@ """ Public slot called to handle the user entering a character. - @param charNumber value of the character entered (integer) + @param charNumber value of the character entered + @type int """ char = chr(charNumber) if char not in ["(", ")", "{", "}", "[", "]", " ", ",", "'", '"', "\n", ":"]: @@ -377,7 +380,8 @@ """ Private method to check, if the user is defining a class method. - @return flag indicating the definition of a class method (boolean) + @return flag indicating the definition of a class method + @rtype bool """ line, col = self.editor.getCursorPosition() indentation = self.editor.indentation(line) @@ -412,7 +416,8 @@ Private method to check, if the user is defing a class method (@classmethod). - @return flag indicating the definition of a class method (boolean) + @return flag indicating the definition of a class method + @rtype bool """ line, col = self.editor.getCursorPosition() indentation = self.editor.indentation(line) @@ -429,7 +434,8 @@ Private method to check, if the user is defing a static method (@staticmethod) method. - @return flag indicating the definition of a static method (boolean) + @return flag indicating the definition of a static method + @rtype bool """ line, col = self.editor.getCursorPosition() indentation = self.editor.indentation(line) @@ -445,9 +451,12 @@ """ Private method to check, if the cursor is inside a comment. - @param line current line (integer) - @param col current position within line (integer) - @return flag indicating, if the cursor is inside a comment (boolean) + @param line current line + @type int + @param col current position within line + @type int + @return flag indicating, if the cursor is inside a comment + @rtype bool """ txt = self.editor.text(line) if col == len(txt): @@ -464,7 +473,8 @@ string. @return flag indicating, if the cursor is inside a double - quoted string (boolean) + quoted string + @rtype bool """ return self.editor.currentStyle() == QsciLexerPython.DoubleQuotedString @@ -474,7 +484,8 @@ quoted string. @return flag indicating, if the cursor is inside a triple double - quoted string (boolean) + quoted string + @rtype bool """ return self.editor.currentStyle() == QsciLexerPython.TripleDoubleQuotedString @@ -484,7 +495,8 @@ string. @return flag indicating, if the cursor is inside a single - quoted string (boolean) + quoted string + @rtype bool """ return self.editor.currentStyle() == QsciLexerPython.SingleQuotedString @@ -494,7 +506,8 @@ quoted string. @return flag indicating, if the cursor is inside a triple single - quoted string (boolean) + quoted string + @rtype bool """ return self.editor.currentStyle() == QsciLexerPython.TripleSingleQuotedString