Fix mypy errors

This commit is contained in:
Philipp Hörist 2018-12-17 00:41:46 +01:00
parent 96edd79963
commit 841f12f75b
2 changed files with 2 additions and 8 deletions

View File

@ -156,12 +156,6 @@ class RequestAvatar(IntEnum):
USER = 2 USER = 2
@unique
class BookmarkStorageType(IntEnum):
PRIVATE = 0
PUBSUB = 1
@unique @unique
class PEPEventType(IntEnum): class PEPEventType(IntEnum):
ABSTRACT = 0 ABSTRACT = 0

View File

@ -15,6 +15,7 @@
# XEP-0048: Bookmarks # XEP-0048: Bookmarks
from typing import Any from typing import Any
from typing import Dict
from typing import List from typing import List
from typing import Optional from typing import Optional
@ -27,7 +28,6 @@ from gi.repository import GLib
from gajim.common import app from gajim.common import app
from gajim.common import helpers from gajim.common import helpers
from gajim.common.const import BookmarkStorageType
from gajim.common.const import PEPEventType from gajim.common.const import PEPEventType
from gajim.common.nec import NetworkEvent from gajim.common.nec import NetworkEvent
from gajim.common.exceptions import StanzaMalformed from gajim.common.exceptions import StanzaMalformed
@ -210,7 +210,7 @@ class Bookmarks(AbstractPEPModule):
return storage return storage
@staticmethod @staticmethod
def _parse_bookmarks(storage: nbxmpp.Node) -> bool: def _parse_bookmarks(storage: nbxmpp.Node) -> Dict[str, Dict[str, Any]]:
bookmarks = {} bookmarks = {}
confs = storage.getTags('conference') confs = storage.getTags('conference')
for conf in confs: for conf in confs: