diff --git a/pymilvus/client/types.py b/pymilvus/client/types.py index c3e3882d8..2916d41f8 100644 --- a/pymilvus/client/types.py +++ b/pymilvus/client/types.py @@ -717,7 +717,7 @@ def privileges(self): class PrivilegeGroupInfo: """ PrivilegeGroupInfo groups: - - PrivilegeGroupItem: , + - PrivilegeGroupItem: , """ def __init__(self, results: List[milvus_types.PrivilegeGroupInfo]) -> None: diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index e1cf7d642..d58f0f77a 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -1478,7 +1478,7 @@ def list_privilege_groups( raise ex from ex ret = [] for g in res.groups: - ret.append({"privilge_group": g.privilege_group, "privileges": g.privileges}) + ret.append({"privilege_group": g.privilege_group, "privileges": g.privileges}) return ret def add_privileges_to_group( @@ -1493,7 +1493,7 @@ def add_privileges_to_group( Args: group_name (``str``): The name of the privilege group. privileges (``List[str]``): A list of privileges to be added to the group. - Privilges should be the same type in a group otherwise it will raise an exception. + Privileges should be the same type in a group otherwise it will raise an exception. timeout (``float``, optional): An optional duration of time in seconds to allow for the RPC. When timeout is set to None, client waits until server response or error occur.