We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660e12e commit e982e16Copy full SHA for e982e16
1 file changed
reference/_mpy_shed/buffer_mp.pyi
@@ -1,6 +1,9 @@
1
from _typeshed import Incomplete, structseq, AnyStr_co
2
from typing_extensions import TypeAlias, TypeVar
3
from array import array
4
+from typing import Union
5
+
6
+Buffer : TypeAlias= Union[bytes, bytearray, memoryview]
7
8
# ------------------------------------------------------------------------------------
9
# TODO: need some to allow string to be passed in : uart_1.write("hello")
0 commit comments