File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
from ..uuid import VendorUUID
15
15
from ..characteristics import Characteristic
16
16
17
+ try :
18
+ from typing import Optional
19
+ except ImportError :
20
+ pass
21
+
17
22
__version__ = "0.0.0-auto.0"
18
23
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BLE.git"
19
24
@@ -24,7 +29,7 @@ class MidiIOCharacteristic(Characteristic):
24
29
# pylint: disable=too-few-public-methods
25
30
uuid = VendorUUID ("7772E5DB-3868-4112-A1A9-F2669D106BF3" )
26
31
27
- def __init__ (self , ** kwargs ):
32
+ def __init__ (self , ** kwargs ) -> None :
28
33
super ().__init__ (
29
34
properties = (
30
35
Characteristic .NOTIFY
@@ -43,7 +48,7 @@ class MidiService(Service):
43
48
io = MidiIOCharacteristic () # pylint: disable=invalid-name
44
49
45
50
# pylint: disable=unnecessary-pass
46
- def write (self ):
51
+ def write (self ) -> None :
47
52
"""Placeholder for transmitting midi bytes to the other device."""
48
53
pass
49
54
# add timestamp to writes 13-bit millisecond resolution
@@ -59,6 +64,6 @@ def write(self):
59
64
# high timestamp header byte. Low timestamp packets may wrap around and the decoder is
60
65
# responsible for incrementing the high bits
61
66
62
- def read (self ):
67
+ def read (self ) -> None :
63
68
"""Placeholder for receiving midi bytes from the other device."""
64
69
pass
You can’t perform that action at this time.
0 commit comments