Skip to content

Commit 156ec2a

Browse files
committed
TR updates, second round
1 parent 75058c8 commit 156ec2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python-mutable-immutable/immutable.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Immutable:
2-
def __init__(self, magnitude):
3-
super().__setattr__("magnitude", magnitude)
2+
def __init__(self, value):
3+
super().__setattr__("value", value)
44

5-
def __setattr__(self, name, value):
5+
def __setattr__(self, name, attr_value):
66
raise AttributeError(f"can't set attribute '{name}'")
77

88
def __delattr__(self, name):

0 commit comments

Comments
 (0)