File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 23
23
try :
24
24
from typing import Optional , Type
25
25
from types import TracebackType
26
- from pwmio import PWMOut
26
+
27
+ try :
28
+ from pwmio import PWMOut
29
+ except NotImplementedError :
30
+ from circuitpython_typing .pwmio import PWMOut
31
+
27
32
except ImportError :
28
33
pass
29
34
Original file line number Diff line number Diff line change 17
17
from types import TracebackType
18
18
19
19
# pylint: disable-msg=unused-import
20
- from pwmio import PWMOut
20
+ try :
21
+ from pwmio import PWMOut
22
+ except NotImplementedError :
23
+ from circuitpython_typing .pwmio import PWMOut
24
+
21
25
except (ImportError , NotImplementedError ):
22
26
pass
23
27
Original file line number Diff line number Diff line change 20
20
21
21
try :
22
22
from typing import Union , Optional
23
- from pwmio import PWMOut
24
23
from digitalio import DigitalInOut
24
+
25
+ try :
26
+ from pwmio import PWMOut
27
+ except NotImplementedError :
28
+ from circuitpython_typing .pwmio import PWMOut
29
+
25
30
except ImportError :
26
31
pass
27
32
You can’t perform that action at this time.
0 commit comments