1
0
Эх сурвалжийг харах

Fix definition of _user_groups in rights

Dipl. Ing. Péter Varkoly 1 жил өмнө
parent
commit
b47c76e9ca

+ 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.