Skip to content

Commit e982e16

Browse files
committed
add Buffer protocol
1 parent 660e12e commit e982e16

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

reference/_mpy_shed/buffer_mp.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from _typeshed import Incomplete, structseq, AnyStr_co
22
from typing_extensions import TypeAlias, TypeVar
33
from array import array
4+
from typing import Union
5+
6+
Buffer : TypeAlias= Union[bytes, bytearray, memoryview]
47

58
# ------------------------------------------------------------------------------------
69
# TODO: need some to allow string to be passed in : uart_1.write("hello")

0 commit comments

Comments
 (0)