diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-31 01:20:41 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-31 01:20:41 +0200 |
commit | 91831e7903bac287be9e5403e56b07691151f1ab (patch) | |
tree | fc7e4f05916c311cc91dd7d018e7c237ce60ea19 /poezio/core/commands.py | |
parent | f670e3ce3b8d69a9fde71301e156f936aaee6fd8 (diff) | |
download | poezio-91831e7903bac287be9e5403e56b07691151f1ab.tar.gz poezio-91831e7903bac287be9e5403e56b07691151f1ab.tar.bz2 poezio-91831e7903bac287be9e5403e56b07691151f1ab.tar.xz poezio-91831e7903bac287be9e5403e56b07691151f1ab.zip |
Bookmarks: type bookmark method (local/remote)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/core/commands.py')
-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] |