Skip to content

Commit d3c6d4b

Browse files
committed
fix(py): end range is exclusive
1 parent a3daf35 commit d3c6d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/py/ttds_py/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Color:
2222
b: int
2323

2424
def __init__(self, r: int, g: int, b: int):
25-
if r not in range(0, 255) or g not in range(0, 255) or b not in range(0, 255):
25+
if r not in range(0, 256) or g not in range(0, 256) or b not in range(0, 256):
2626
raise ValueError("Color values must be at most 255.")
2727

2828
self.r = r

0 commit comments

Comments
 (0)