Mercurial > libervia-pubsub
comparison sat_pubsub/privilege.py @ 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 | b544109ab4c4 |
children |
comparison
equal
deleted
inserted
replaced
481:0e801ae1869f | 482:8bbaa089cb10 |
---|---|
49 TO_CHECK = { | 49 TO_CHECK = { |
50 PERM_ROSTER:ALLOWED_ROSTER, | 50 PERM_ROSTER:ALLOWED_ROSTER, |
51 PERM_MESSAGE:ALLOWED_MESSAGE, | 51 PERM_MESSAGE:ALLOWED_MESSAGE, |
52 PERM_PRESENCE:ALLOWED_PRESENCE | 52 PERM_PRESENCE:ALLOWED_PRESENCE |
53 } | 53 } |
54 PERMS_BASE : dict[str, Optional[Union[str, Dict[str, Union[str, bool]]]]]= { | 54 PERMS_BASE : Dict[str, Optional[Union[str, Dict[str, Union[str, bool]]]]]= { |
55 PERM_ROSTER: None, | 55 PERM_ROSTER: None, |
56 PERM_MESSAGE: None, | 56 PERM_MESSAGE: None, |
57 PERM_PRESENCE: None, | 57 PERM_PRESENCE: None, |
58 PERM_IQ: None, | 58 PERM_IQ: None, |
59 } | 59 } |