Skip to content

Commit 2d9cdca

Browse files
committed
src(utils): add read-only error
1 parent 57859a9 commit 2d9cdca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cellengine/utils/readonly.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def readonly(obj, attribute, _):
2+
raise AttributeError(
3+
f"{attribute.name} is read-only and cannot be set for {obj.__class__}."
4+
)

0 commit comments

Comments
 (0)