Commit 4cd78631 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Annotations: Fix type annotation

parent 8e01ad49
Pipeline #8484 failed with stages
in 2 minutes and 8 seconds
......@@ -17,11 +17,13 @@
from typing import Any
from typing import Dict
from typing import Tuple
from typing import Union
from typing import Optional
from nbxmpp.errors import StanzaError
from nbxmpp.errors import MalformedStanzaError
from nbxmpp.structs import AnnotationNote
from nbxmpp.protocol import JID
from gajim.common.types import ConnectionT
from gajim.common.modules.base import BaseModule
......@@ -38,7 +40,7 @@ class Annotations(BaseModule):
def __init__(self, con: ConnectionT) -> None:
BaseModule.__init__(self, con)
self._annotations: Dict[str, AnnotationNote] = {}
self._annotations: Dict[Union[JID, str], AnnotationNote] = {}
def request_annotations(self) -> None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment