changeset 482:8bbaa089cb10

privilege: use `typing.Dict[]` instead of `dict[]` to be compatible with Python 3.7
author Goffi <goffi@goffi.org>
date Tue, 06 Sep 2022 11:33:34 +0200
parents 0e801ae1869f
children e814c98ef07a
files sat_pubsub/privilege.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_pubsub/privilege.py	Tue Sep 06 11:31:00 2022 +0200
+++ b/sat_pubsub/privilege.py	Tue Sep 06 11:33:34 2022 +0200
@@ -51,7 +51,7 @@
     PERM_MESSAGE:ALLOWED_MESSAGE,
     PERM_PRESENCE:ALLOWED_PRESENCE
 }
-PERMS_BASE : dict[str, Optional[Union[str, Dict[str, Union[str, bool]]]]]= {
+PERMS_BASE : Dict[str, Optional[Union[str, Dict[str, Union[str, bool]]]]]= {
     PERM_ROSTER: None,
     PERM_MESSAGE: None,
     PERM_PRESENCE: None,