File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
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
27
+ - --disable=consider-using-f-string,duplicate-code
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 : Optional [ Dict [str , str ] ] = None ,
75
+ headers : 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
30
31
import board
31
32
from digitalio import DigitalInOut , Direction , Pull
32
33
from analogio import AnalogIn
36
37
import adafruit_ahtx0
37
38
import adafruit_dotstar
38
39
39
- try :
40
- from typing import Optional
41
- except ImportError :
42
- pass
43
-
44
40
__version__ = "0.0.0-auto.0"
45
41
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FunHouse.git"
46
42
@@ -95,7 +91,7 @@ def __init__(self) -> None:
95
91
self ._pir .direction = Direction .INPUT
96
92
97
93
@staticmethod
98
- def play_tone (frequency : int , duration : float ) -> None :
94
+ def play_tone (frequency : float , duration : float ) -> None :
99
95
"""Automatically Enable/Disable the speaker and play
100
96
a tone at the specified frequency for the specified duration
101
97
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