Skip to content

Commit 9dc3304

Browse files
committed
Added/corrected type hints for _buffer_split0()
1 parent 36fb70b commit 9dc3304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_requests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# CircuitPython 6.0 does not have the bytearray.split method.
7171
# This function emulates buf.split(needle)[0], which is the functionality
7272
# required.
73-
def _buffer_split0(buf, needle: bytes):
73+
def _buffer_split0(buf: Union[bytes, bytearray], needle: Union[bytes, bytearray]):
7474
index = buf.find(needle)
7575
if index == -1:
7676
return buf

0 commit comments

Comments
 (0)