Просмотр исходного кода

Fix definition of _user_groups in rights

Dipl. Ing. Péter Varkoly 1 год назад
Родитель
Сommit
b47c76e9ca
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      radicale/rights/__init__.py

+ 4 - 1
radicale/rights/__init__.py

@@ -36,6 +36,9 @@ from typing import Sequence
 
 from radicale import config, utils
 
+from typing import Set
+
+
 INTERNAL_TYPES: Sequence[str] = ("authenticated", "owner_write", "owner_only",
                                  "from_file")
 
@@ -57,7 +60,7 @@ def intersect(a: str, b: str) -> str:
 
 class BaseRights:
 
-    _user_groups: set[str] = set([])
+    _user_groups: Set[str] = set([])
 
     def __init__(self, configuration: "config.Configuration") -> None:
         """Initialize BaseRights.