diff -r e440aaf179ce -r 64157aeb0312 src/eric7/QScintilla/Lexers/LexerPython.py --- a/src/eric7/QScintilla/Lexers/LexerPython.py Wed Dec 20 19:28:22 2023 +0100 +++ b/src/eric7/QScintilla/Lexers/LexerPython.py Thu Dec 21 12:03:40 2023 +0100 @@ -27,8 +27,10 @@ """ Constructor - @param variant name of the language variant (string) + @param variant name of the language variant + @type str @param parent parent widget of this lexer + @type QWidget """ QsciLexerPython.__init__(self, parent) SubstyledLexer.__init__(self) @@ -120,7 +122,8 @@ """ Public method to get the lexer language. - @return lexer language (string) + @return lexer language + @rtype str """ if not self.variant: return QsciLexerPython.language(self) @@ -154,9 +157,12 @@ """ Public method to determine the difference for the new indentation. - @param line line to perform the calculation for (integer) + @param line line to perform the calculation for + @type int @param editor QScintilla editor - @return amount of difference in indentation (integer) + @type Editor + @return amount of difference in indentation + @rtype int """ indent_width = editor.getEditorConfig("IndentWidth") @@ -197,7 +203,8 @@ """ Public method to return the list of separators for autocompletion. - @return list of separators (list of strings) + @return list of separators + @rtype list of str """ return ["."] @@ -205,8 +212,10 @@ """ Public method to check, if a style is a comment style. - @param style style to check (integer) - @return flag indicating a comment style (boolean) + @param style style to check + @type int + @return flag indicating a comment style + @rtype bool """ return style in [QsciLexerPython.Comment, QsciLexerPython.CommentBlock] @@ -214,8 +223,10 @@ """ Public method to check, if a style is a string style. - @param style style to check (integer) - @return flag indicating a string style (boolean) + @param style style to check + @type int + @return flag indicating a string style + @rtype bool """ return style in [ QsciLexerPython.DoubleQuotedString, @@ -229,8 +240,10 @@ """ Public method to get the default keywords. - @param kwSet number of the keyword set (integer) - @return string giving the keywords (string) or None + @param kwSet number of the keyword set + @type int + @return string giving the keywords or None + @rtype str """ if kwSet == 1: if self.language() == "Python3": @@ -261,7 +274,8 @@ """ Public method to get the maximum keyword set. - @return maximum keyword set (integer) + @return maximum keyword set + @rtype int """ return 2