From 0af7cc31b39c42270dd42e928f53193d22896ea1 Mon Sep 17 00:00:00 2001 From: yannick Date: Thu, 16 Mar 2023 13:40:19 +0100 Subject: [PATCH] get_member_collection types --- bitwarden_access_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitwarden_access_manager.py b/bitwarden_access_manager.py index 6dacddb..1c34327 100644 --- a/bitwarden_access_manager.py +++ b/bitwarden_access_manager.py @@ -78,6 +78,7 @@ TypeVar, ) + class MemberType(Enum): OWNER = 0 ADMIN = 1 @@ -85,6 +86,7 @@ class MemberType(Enum): MANAGER = 3 CUSTOM = 4 + class Member(NamedTuple): id: str name: str @@ -313,7 +315,7 @@ def get_groups(self) -> Iterable[Group]: ) def get_collection_members( - self, groups: Any, org_members: Dict[str, Member] + self, groups: List[Dict[str, Any]], org_members: Dict[str, Member] ) -> Iterable[MemberCollectionAccess]: for group in groups: group_id = group["id"]