File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 24
24
25
25
try :
26
26
from typing import Optional , List
27
- from circuitpython_typing import WriteableBuffer
27
+ from circuitpython_typing import WriteableBuffer , ReadableBuffer
28
28
except ImportError :
29
29
pass
30
30
@@ -123,13 +123,13 @@ class ProtocolError(BaseException):
123
123
class FileTransferClient :
124
124
"""Helper class to communicating with a File Transfer server"""
125
125
126
- def __init__ (self , service ) -> None :
126
+ def __init__ (self , service : Service ) -> None :
127
127
self ._service = service
128
128
129
129
if service .version < 3 :
130
130
raise RuntimeError ("Service on other device too old" )
131
131
132
- def _write (self , buffer ) -> None :
132
+ def _write (self , buffer : ReadableBuffer ) -> None :
133
133
# print("write", binascii.hexlify(buffer))
134
134
sent = 0
135
135
while sent < len (buffer ):
You can’t perform that action at this time.
0 commit comments