From 69a2a2b8a29875cbfb59e1b3d1b0ce1bcb3db8ed Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 29 Nov 2022 20:30:08 +0100 Subject: [PATCH] uio: Don't use alloc_size. Follows the upstream MicroPython guidance. --- src/uio/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uio/__init__.py b/src/uio/__init__.py index e62c6be..1f8f6b4 100644 --- a/src/uio/__init__.py +++ b/src/uio/__init__.py @@ -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: