diff --git a/src/abstract.py b/src/abstract.py index 37953cf04d980d43ed3fc75783ba2d2f900b2990..0b5841dc128faa4b216b378c9c2632802d8ad322 100644 --- a/src/abstract.py +++ b/src/abstract.py @@ -1,27 +1,24 @@ -from abc import ABC, abstractmethod +"""Collection of abstract classes for type hinting in the rest of the project.""" +# We aren't using the abc module because it isn't available on circuitpy. - -class ProximitySensor(ABC): +class ProximitySensor: """Abstract proximity sensor.""" @property - @abstractmethod def proximity(self) -> int: - ... + return -1 -class LEDController(ABC): +class LEDController: """Abstract LED controller.""" - @abstractmethod def fill(self, color: tuple[int, int, int]) -> None: - ... + pass -class TouchSensor(ABC): +class TouchSensor: """Abstract touch sensor.""" @property - @abstractmethod def value(self) -> bool: - ... + return False