Philipp Hörist pushed to branch master at gajim / gajim
Commits:
841f12f7 by Philipp Hörist at 2018-12-16T23:41:46Z
Fix mypy errors
- - - - -
2 changed files:
- gajim/common/const.py
- gajim/common/modules/bookmarks.py
Changes:
=====================================
gajim/common/const.py
=====================================
@@ -156,12 +156,6 @@ class RequestAvatar(IntEnum):
USER = 2
-@unique
-class BookmarkStorageType(IntEnum):
- PRIVATE = 0
- PUBSUB = 1
-
-
@unique
class PEPEventType(IntEnum):
ABSTRACT = 0
=====================================
gajim/common/modules/bookmarks.py
=====================================
@@ -15,6 +15,7 @@
# XEP-0048: Bookmarks
from typing import Any
+from typing import Dict
from typing import List
from typing import Optional
@@ -27,7 +28,6 @@ from gi.repository import GLib
from gajim.common import app
from gajim.common import helpers
-from gajim.common.const import BookmarkStorageType
from gajim.common.const import PEPEventType
from gajim.common.nec import NetworkEvent
from gajim.common.exceptions import StanzaMalformed
@@ -210,7 +210,7 @@ class Bookmarks(AbstractPEPModule):
return storage
@staticmethod
- def _parse_bookmarks(storage: nbxmpp.Node) -> bool:
+ def _parse_bookmarks(storage: nbxmpp.Node) -> Dict[str, Dict[str, Any]]:
bookmarks = {}
confs = storage.getTags('conference')
for conf in confs:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/841f12f75b80eb9729d7bcfd2a424baacb8564e3
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/841f12f75b80eb9729d7bcfd2a424baacb8564e3
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits