diff --git a/libs/labelbox/src/labelbox/schema/user_group.py b/libs/labelbox/src/labelbox/schema/user_group.py index 5f1fb6eed..2dd9f76ca 100644 --- a/libs/labelbox/src/labelbox/schema/user_group.py +++ b/libs/labelbox/src/labelbox/schema/user_group.py @@ -93,9 +93,6 @@ def __init__( color (UserGroupColor, optional): The color of the user group. Defaults to UserGroupColor.BLUE. users (Set[User], optional): The set of users in the user group. Defaults to an empty set. projects (Set[Project], optional): The set of projects associated with the user group. Defaults to an empty set. - - Raises: - RuntimeError: If the experimental feature is not enabled in the client. """ super().__init__( client=client, @@ -105,10 +102,6 @@ def __init__( users=users, projects=projects, ) - if not self.client.enable_experimental: - raise RuntimeError( - "Please enable experimental in client to use UserGroups" - ) def get(self) -> "UserGroup": """ @@ -285,7 +278,7 @@ def create(self) -> "UserGroup": except Exception as e: error = e if not result or error: - # this is client side only, server doesn't have an equivalent error + # This is client side only, server doesn't have an equivalent error raise ResourceCreationError( f"Failed to create user group, either user group name is in use currently, or provided user or projects don't exist server error: {error}" )