changeset 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 23a51b139024
children 8bbaa089cb10
files sat_pubsub/backend.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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