We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71c2c2 commit 676b320Copy full SHA for 676b320
packages/models-library/src/models_library/clusters.py
@@ -222,7 +222,7 @@ class Cluster(BaseCluster):
222
)
223
224
@model_validator(mode="after")
225
- def check_owner_has_access_rights(self) -> Self:
+ def check_owner_has_access_rights(self: Self) -> Self:
226
is_default_cluster = bool(self.id == DEFAULT_CLUSTER_ID)
227
owner_gid = self.owner
228
@@ -238,5 +238,5 @@ def check_owner_has_access_rights(self) -> Self:
238
):
239
msg = f"the cluster owner access rights are incorrectly set: {access_rights[owner_gid]}"
240
raise ValueError(msg)
241
- self.access_rights = access_rights
+ object.__setattr__(self, "access_rights", access_rights)
242
return self
0 commit comments