File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2323try :
2424 from typing import Optional , Type
2525 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+
2732except ImportError :
2833 pass
2934
Original file line number Diff line number Diff line change 1717 from types import TracebackType
1818
1919 # 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+
2125except (ImportError , NotImplementedError ):
2226 pass
2327
Original file line number Diff line number Diff line change 2020
2121try :
2222 from typing import Union , Optional
23- from pwmio import PWMOut
2423 from digitalio import DigitalInOut
24+
25+ try :
26+ from pwmio import PWMOut
27+ except NotImplementedError :
28+ from circuitpython_typing .pwmio import PWMOut
29+
2530except ImportError :
2631 pass
2732
You can’t perform that action at this time.
0 commit comments