uio: Don't use alloc_size.

Follows the upstream MicroPython guidance.
This commit is contained in:
Laurens Valk
2022-11-29 20:30:08 +01:00
parent f5d9a4f1c6
commit 69a2a2b8a2
+6 -2
View File
@@ -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: