We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36fb70b commit 9dc3304Copy full SHA for 9dc3304
adafruit_requests.py
@@ -70,7 +70,7 @@
70
# CircuitPython 6.0 does not have the bytearray.split method.
71
# This function emulates buf.split(needle)[0], which is the functionality
72
# required.
73
-def _buffer_split0(buf, needle: bytes):
+def _buffer_split0(buf: Union[bytes, bytearray], needle: Union[bytes, bytearray]):
74
index = buf.find(needle)
75
if index == -1:
76
return buf
0 commit comments