File tree Expand file tree Collapse file tree
gooddata_pipelines/provisioning/entities/users/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919
2020class PermissionType (str , Enum ):
21+ # NOTE: Start using StrEnum with Python 3.11
2122 user = "user"
2223 user_group = "userGroup"
2324
@@ -43,6 +44,7 @@ def from_list_of_dicts(
4344 cls : type [ConstructorType ], data : list [dict [str , Any ]]
4445 ) -> list [ConstructorType ]:
4546 """Creates a list of instances from list of dicts."""
47+ # NOTE: We can use typing.Self for the return type in Python 3.11
4648 permissions = []
4749 for permission in data :
4850 permissions .append (cls .from_dict (permission ))
Original file line number Diff line number Diff line change 99
1010from gooddata_pipelines .api import GoodDataApi
1111
12- TEST_DATA_DIR = str (Path (Path (__file__ ).parent / "data" ).absolute ())
12+ TEST_DATA_DIR = str ((Path (__file__ ).parent / "data" ).absolute ())
1313
1414
1515@pytest .fixture (scope = "function" , autouse = True )
You can’t perform that action at this time.
0 commit comments