File tree 5 files changed +23
-5
lines changed
5 files changed +23
-5
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
Original file line number Diff line number Diff line change 2
2
#
3
3
# SPDX-License-Identifier: Unlicense
4
4
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 34
34
# Author details
35
35
author = "Adafruit Industries" ,
36
36
37
- install_requires = ["Adafruit-Blinka" ],
37
+ install_requires = [
38
+ "Adafruit-Blinka>=7.0.0" ,
39
+ "adafruit-circuitpython-typing>=1.5.0" ,
40
+ ],
38
41
# Choose your license
39
42
license = "MIT" ,
40
43
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
You can’t perform that action at this time.
0 commit comments