diff sat_pubsub/backend.py @ 481:0e801ae1869f

backend: use `typing.Dict[]` instead of `dict[]` to be compatible with Python 3.7
author Goffi <goffi@goffi.org>
date Tue, 06 Sep 2022 11:31:00 +0200
parents b544109ab4c4
children 70eddf92bf51
line wrap: on
line diff
--- a/sat_pubsub/backend.py	Mon May 30 16:37:14 2022 +0200
+++ b/sat_pubsub/backend.py	Tue Sep 06 11:31:00 2022 +0200
@@ -63,7 +63,7 @@
 import copy
 import uuid
 import hashlib
-from typing import Optional, List, Tuple
+from typing import Optional, List, Tuple, Dict
 
 from zope.interface import implementer
 
@@ -1257,7 +1257,7 @@
         self,
         parent_elt: domish.Element,
         from_jid: Optional[jid.JID],
-        sub_dict: dict[str, str],
+        sub_dict: Dict[str, str],
         namespace: Optional[str] = None,
     ) -> None:
         """Generate <subscription> element from storage.getAllSubscriptions's dict