--- a/src/eric7/QScintilla/TypingCompleters/CompleterPython.py Tue Nov 08 18:18:42 2022 +0100 +++ b/src/eric7/QScintilla/TypingCompleters/CompleterPython.py Tue Nov 08 19:47:11 2022 +0100 @@ -472,3 +472,17 @@ quoted string (boolean) """ return self.editor.currentStyle() == QsciLexerPython.TripleSingleQuotedString + + +def createCompleter(editor, parent=None): + """ + Function to instantiate a typing completer object. + + @param editor reference to the editor object + @type QScintilla.Editor + @param parent reference to the parent object (defaults to None) + @type QObject (optional) + @return reference to the instantiated typing completer object + @rtype CompleterPython + """ + return CompleterPython(editor, parent=parent)