File tree 3 files changed +8
-4
lines changed 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 24
24
name : pylint (library code)
25
25
types : [python]
26
26
args :
27
- - --disable=consider-using-f-string,duplicate-code
27
+ - --disable=consider-using-f-string
28
28
exclude : " ^(docs/|examples/|tests/|setup.py$)"
29
29
- id : pylint
30
30
name : pylint (example code)
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def __init__(
72
72
self ,
73
73
* ,
74
74
url : Optional [str ] = None ,
75
- headers : Dict [str , str ] = None ,
75
+ headers : Optional [ Dict [str , str ] ] = None ,
76
76
json_path : Optional [Union [List [str ], List [List [str ]]]] = None ,
77
77
regexp_path : Optional [Sequence [str ]] = None ,
78
78
default_bg : int = 0 ,
Original file line number Diff line number Diff line change 27
27
28
28
"""
29
29
30
- from typing import Optional
31
30
import board
32
31
from digitalio import DigitalInOut , Direction , Pull
33
32
from analogio import AnalogIn
37
36
import adafruit_ahtx0
38
37
import adafruit_dotstar
39
38
39
+ try :
40
+ from typing import Optional
41
+ except ImportError :
42
+ pass
43
+
40
44
__version__ = "0.0.0-auto.0"
41
45
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FunHouse.git"
42
46
@@ -91,7 +95,7 @@ def __init__(self) -> None:
91
95
self ._pir .direction = Direction .INPUT
92
96
93
97
@staticmethod
94
- def play_tone (frequency : float , duration : float ) -> None :
98
+ def play_tone (frequency : int , duration : float ) -> None :
95
99
"""Automatically Enable/Disable the speaker and play
96
100
a tone at the specified frequency for the specified duration
97
101
It will attempt to play the sound up to 3 times in the case of
You can’t perform that action at this time.
0 commit comments