# HG changeset patch # User Goffi # Date 1662456660 -7200 # Node ID 0e801ae1869f54b9f00cf9e9da0bfe3f082f7c94 # Parent 23a51b139024d7e1f2557cfcb9ba59a4fbf5d44b backend: use `typing.Dict[]` instead of `dict[]` to be compatible with Python 3.7 diff -r 23a51b139024 -r 0e801ae1869f sat_pubsub/backend.py --- 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 element from storage.getAllSubscriptions's dict