diff options
author | Maxime Buquet <pep@bouah.net> | 2020-05-31 01:35:26 +0200 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2020-05-31 01:35:26 +0200 |
commit | ce9d59f19e2a4b2150de66bee1159931158e8009 (patch) | |
tree | 7313bde4e1fa11db0f9f28927f694c696be5a64b /poezio/core | |
parent | ab9108e00a631d9b600d51999b9a9c765cf3f0d4 (diff) | |
parent | 21c45ff72e23b66c04d56a6ac5d832dd564baf65 (diff) | |
download | poezio-ce9d59f19e2a4b2150de66bee1159931158e8009.tar.gz poezio-ce9d59f19e2a4b2150de66bee1159931158e8009.tar.bz2 poezio-ce9d59f19e2a4b2150de66bee1159931158e8009.tar.xz poezio-ce9d59f19e2a4b2150de66bee1159931158e8009.zip |
Merge branch 'type-bookmarks' into 'master'
Type bookmarks
See merge request poezio/poezio!138
Diffstat (limited to 'poezio/core')
-rw-r--r-- | poezio/core/commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py index 6fc800ae..98acef32 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -18,7 +18,7 @@ from poezio import common from poezio import pep from poezio import tabs from poezio import multiuserchat as muc -from poezio.bookmarks import Bookmark +from poezio.bookmarks import Bookmark, Method as BookmarkMethod from poezio.common import safeJID from poezio.config import config, DEFAULT_CONFIG, options as config_opts from poezio.contact import Contact, Resource @@ -444,7 +444,7 @@ class CommandCore: self._add_bookmark(jid, autojoin, password, 'remote') - def _add_bookmark(self, jid, autojoin, password, method): + def _add_bookmark(self, jid: str, autojoin: bool, password: str, method: BookmarkMethod) -> None: nick = None if not jid: tab = self.core.tabs.current_tab @@ -478,7 +478,7 @@ class CommandCore: self.core.bookmarks.save_remote(self.core.xmpp, self.core.handler.on_bookmark_result) - def _add_wildcard_bookmarks(self, method): + def _add_wildcard_bookmarks(self, method: BookmarkMethod): new_bookmarks = [] for tab in self.core.get_tabs(tabs.MucTab): bookmark = self.core.bookmarks[tab.jid.bare] |