Skip to content

Commit

Permalink
Added/corrected type hints for _buffer_split0()
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Dec 14, 2021
1 parent 36fb70b commit 9dc3304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# CircuitPython 6.0 does not have the bytearray.split method.
# This function emulates buf.split(needle)[0], which is the functionality
# required.
def _buffer_split0(buf, needle: bytes):
def _buffer_split0(buf: Union[bytes, bytearray], needle: Union[bytes, bytearray]):
index = buf.find(needle)
if index == -1:
return buf
Expand Down

0 comments on commit 9dc3304

Please sign in to comment.