From 28aeddf713ed03038c4c6cc9b9becdcb63e129ec Mon Sep 17 00:00:00 2001 From: Thomas Franks Date: Tue, 11 Oct 2022 11:21:24 -0400 Subject: [PATCH] remove pass from Rate which implements CV and change initialize error to NotImplementedError --- adafruit_lps2x.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adafruit_lps2x.py b/adafruit_lps2x.py index d63179d..3fb145e 100644 --- a/adafruit_lps2x.py +++ b/adafruit_lps2x.py @@ -131,8 +131,6 @@ class Rate(CV): """ - pass # pylint: disable=unnecessary-pass - class LPS2X: # pylint: disable=too-many-instance-attributes """Base class ST LPS2x family of pressure sensors @@ -164,7 +162,7 @@ def __init__( def initialize(self) -> None: # pylint: disable=no-self-use """Configure the sensor with the default settings. For use after calling :meth:`reset`""" - raise RuntimeError( + raise NotImplementedError( "LPS2X Base class cannot be instantiated directly. Use LPS22 or LPS25 instead" ) # override in subclass