File tree Expand file tree Collapse file tree 5 files changed +23
-5
lines changed Expand file tree Collapse file tree 5 files changed +23
-5
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
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: Unlicense
44
5- Adafruit-Blinka
5+ Adafruit-Blinka >= 7.0.0
6+ adafruit-circuitpython-typing >= 1.5.0
Original file line number Diff line number Diff line change 3434 # Author details
3535 author = "Adafruit Industries" ,
3636 author_email = "circuitpython@adafruit.com" ,
37- install_requires = ["Adafruit-Blinka" ],
37+ install_requires = [
38+ "Adafruit-Blinka>=7.0.0" ,
39+ "adafruit-circuitpython-typing>=1.5.0" ,
40+ ],
3841 # Choose your license
3942 license = "MIT" ,
4043 # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
You can’t perform that action at this time.
0 commit comments