mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-11 17:14:41 +00:00
uio: Don't use alloc_size.
Follows the upstream MicroPython guidance.
This commit is contained in:
+6
-2
@@ -42,7 +42,9 @@ class BytesIO:
|
||||
Arguments:
|
||||
data (bytes or bytearray): Optional bytes-like object
|
||||
that contains initial data.
|
||||
alloc_size (int): Optional number of preallocated bytes.
|
||||
alloc_size (int): Optional number of preallocated bytes. This
|
||||
parameter is unique to MicroPython. It is not recommended to
|
||||
use it in end-user code.
|
||||
"""
|
||||
|
||||
def getvalue(self) -> bytes:
|
||||
@@ -76,7 +78,9 @@ class StringIO:
|
||||
|
||||
Arguments:
|
||||
string (str): Optional string with initial data.
|
||||
alloc_size (int): Optional number of preallocated bytes.
|
||||
alloc_size (int): Optional number of preallocated bytes. This
|
||||
parameter is unique to MicroPython. It is not recommended to
|
||||
use it in end-user code.
|
||||
"""
|
||||
|
||||
def getvalue(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user