diff -r f6881d10e995 -r 2f70ca07f0af src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardServer.py --- a/src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardServer.py Fri Dec 22 17:24:07 2023 +0100 +++ b/src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardServer.py Fri Dec 22 19:45:17 2023 +0100 @@ -18,10 +18,12 @@ """ Function to validate the given regular expression. - @param regexp regular expression to validate (string) - @param options list of options (list of string) - @return tuple of flag indicating validity (boolean), error - string (string) and error offset (integer) + @param regexp regular expression to validate + @type str + @param options list of options + @type list of str + @return tuple of flag indicating validity, error string and error offset + @rtype tuple of (bool, str, int) """ rxOptions = QRegularExpression.PatternOption.NoPatternOption if "CaseInsensitiveOption" in options: @@ -54,14 +56,18 @@ """ Function to execute the given regular expression for a given text. - @param regexp regular expression to validate (string) - @param options list of options (list of string) - @param text text to execute on (string) - @param startpos start position for the execution (integer) - @return tuple of a flag indicating a successful match (boolean) and - a list of captures containing the complete match as matched string - (string), match start (integer), match end (integer) and match length - (integer) for each entry + @param regexp regular expression to validate + @type str + @param options list of options + @type list of str + @param text text to execute on + @type str + @param startpos start position for the execution + @type int + @return tuple of a flag indicating a successful match and a list of captures + containing the complete match as matched string, match start, match end + and match length for each entry + @rtype tuple of (bool, list of [str, int, int, int]) """ valid, error, errorOffset = rxValidate(regexp, options) if not valid: