Coverage for serviceable.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-03-09 21:08 +0000

1"""An interface for serviceable objects.""" 

2 

3from abc import ABC, abstractmethod 

4 

5class Serviceable(ABC): 

6 """An interface for serviceable objects. 

7 """ 

8 @abstractmethod 

9 def needs_service(self): 

10 """Determines if the object needs to be serviced. 

11 

12 This method needs to be implemented by the subclass. 

13 """ 

14