We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c99a65c commit 28aeddfCopy full SHA for 28aeddf
adafruit_lps2x.py
@@ -131,8 +131,6 @@ class Rate(CV):
131
132
"""
133
134
- pass # pylint: disable=unnecessary-pass
135
-
136
137
class LPS2X: # pylint: disable=too-many-instance-attributes
138
"""Base class ST LPS2x family of pressure sensors
@@ -164,7 +162,7 @@ def __init__(
164
162
165
163
def initialize(self) -> None: # pylint: disable=no-self-use
166
"""Configure the sensor with the default settings. For use after calling :meth:`reset`"""
167
- raise RuntimeError(
+ raise NotImplementedError(
168
"LPS2X Base class cannot be instantiated directly. Use LPS22 or LPS25 instead"
169
) # override in subclass
170
0 commit comments