Coverage for skema/metal/model_linker/skema_model_linker/walkers/model_walker.py: 75%

8 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-04-30 17:15 +0000

1import abc 

2from abc import ABC 

3 

4 

5class ModelWalker(ABC): 

6 """ Defines the interface to walk through a __model to attach text extractions """ 

7 

8 def __iter__(self): 

9 return iter(self) 

10 

11 @abc.abstractmethod 

12 def walk(self, callback=None, *args, **kwargs): 

13 pass