File size: 530 Bytes
58974f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from base_chain import BaseChain

# class SimpleChain(BaseChain):
#     def __init__(self, chain: list[str]):
#         self.chain = chain if chain else []
    
#     def append(self, item: str):
#         self.chain.append(item)
    
#     def execute(self):
#         # raise NotImplementedError
#         for item in self.chain:
#             pass
#             #todo: execute item
#             # item --> result
#             item.execute(param=param)
#             # result --> next item
            
#         return result