Skip to content

Commit 676b320

Browse files
committed
fix test
1 parent c71c2c2 commit 676b320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/models-library/src/models_library/clusters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class Cluster(BaseCluster):
222222
)
223223

224224
@model_validator(mode="after")
225-
def check_owner_has_access_rights(self) -> Self:
225+
def check_owner_has_access_rights(self: Self) -> Self:
226226
is_default_cluster = bool(self.id == DEFAULT_CLUSTER_ID)
227227
owner_gid = self.owner
228228

@@ -238,5 +238,5 @@ def check_owner_has_access_rights(self) -> Self:
238238
):
239239
msg = f"the cluster owner access rights are incorrectly set: {access_rights[owner_gid]}"
240240
raise ValueError(msg)
241-
self.access_rights = access_rights
241+
object.__setattr__(self, "access_rights", access_rights)
242242
return self

0 commit comments

Comments
 (0)