diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-05-24 13:14:33 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-24 14:01:09 +0200 |
commit | c8f3d99eab089d337e5fdcb8ff39efd6ab1aa5e9 (patch) | |
tree | f5e269b6d85d078e0ad43cfde1c36a56ecca0b0e /alot/db/manager.py | |
parent | b1f6be9d1808406c94c5c033b50abb5f7517e82b (diff) |
Consistently use set/frozenset for tags.
Diffstat (limited to 'alot/db/manager.py')
-rw-r--r-- | alot/db/manager.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/alot/db/manager.py b/alot/db/manager.py index 8ba6bd02..6424f32f 100644 --- a/alot/db/manager.py +++ b/alot/db/manager.py @@ -202,8 +202,8 @@ class DBManager: :param querystring: notmuch search string :type querystring: str - :param tags: a list of tags to be added - :type tags: list of str + :param tags: a set of tags to be added + :type tags: set of str :param afterwards: callback that gets called after successful application of this tagging operation :type afterwards: callable @@ -269,10 +269,9 @@ class DBManager: def get_all_tags(self): """ returns all tagsstrings used in the database - :rtype: list of str + :rtype: set of str """ - # XXX should be set - return list(self._db_ro().tags) + return self._db_ro().tags def get_named_queries(self): """ |