diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-07 14:40:41 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-07 14:40:41 +0000 |
commit | 4eae37524bb6b08d1c369e6487f93ed4330f7815 (patch) | |
tree | 26d0bc457fc59e3e36a42dd3f4c84d65bafeeb79 /alot | |
parent | f868cd1c0686d83fbd9e5d33a6fbc3d84fcf92bb (diff) |
started documenting completion
Diffstat (limited to 'alot')
-rw-r--r-- | alot/completion.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/completion.py b/alot/completion.py index 7dc27fb7..9544f9ee 100644 --- a/alot/completion.py +++ b/alot/completion.py @@ -7,6 +7,7 @@ import alot.commands as commands class Completer(object): + """base class for completers""" def complete(self, original, pos): """returns a list of completions and cursor positions for the string original from position pos on. @@ -14,8 +15,8 @@ class Completer(object): :param original: the complete string to complete :type original: str :param pos: starting position to complete from - :returns: a list of tuples (ctext, cpos), where ctext is the completed - string and cpos the cursor position in the new string + :returns: pairs of completed string and cursor position in the new string + :rtype: list of (str, int) """ return list() |