2022-11-02 15:14:38 +01:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
|
|
|
|
class AbstractWalker(ABC):
|
2022-11-02 07:20:53 +01:00
|
|
|
"""Just a duck type, most likely not needed by python, but I
|
|
|
|
find interface classes preferable (java school)"""
|
|
|
|
|
2022-11-02 15:14:38 +01:00
|
|
|
@abstractmethod
|
2022-11-02 07:20:53 +01:00
|
|
|
def call(self, node, is_source):
|
|
|
|
pass
|