mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-11 17:14:41 +00:00
ubuiltins.bytes: Clarify range up to 255.
Be consistent and use <= for both. A bit more intuitive because the number 256 cannot be used in bytes objects.
This commit is contained in:
@@ -138,8 +138,8 @@ class bytes:
|
||||
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
Returns a new “bytes” object, which is an immutable sequence of integers
|
||||
in the range ``0 <= x < 256``.
|
||||
Returns a new ``bytes`` object, which is an immutable sequence of integers
|
||||
in the range ``0 <= x <= 255``.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user