Skip to content

Commit 27bd1d1

Browse files
committed
lint
1 parent ba5acda commit 27bd1d1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/pybricks/parameters.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def __init__(self, h: Number, s: Number = 100, v: Number = 100):
113113
"""
114114

115115
def __setattr__(self, key, value):
116-
if not hasattr(self, key):
117-
super().__setattr__(key, value)
118-
else: # immutable after __init__
119-
raise AttributeError("Can't modify immutable object attribute: " + key)
116+
if not hasattr(self, key):
117+
super().__setattr__(key, value)
118+
else: # immutable after __init__
119+
raise AttributeError("Can't modify immutable object attribute: " + key)
120120

121121
def __iter__(self):
122122
"""Allows unpacking of the Color instance into h, s, and v."""
@@ -147,6 +147,7 @@ def __lshift__(self, shift: int) -> Color:
147147
def __rshift__(self, shift: int) -> Color:
148148
return Color((self.h + shift) % 360, self.s, self.v)
149149

150+
150151
Color.NONE = Color(0, 0, 0)
151152
Color.BLACK = Color(0, 0, 10)
152153
Color.GRAY = Color(0, 0, 50)

0 commit comments

Comments
 (0)