Esempio n. 1
0
    def __init__(self,
                 prev_blocks: Sequence[IBlock] = None,
                 name: Optional[str] = None):
        Block.__init__(self, None, 1, name=name)

        if prev_blocks is not None:
            for b in prev_blocks:
                if b is not None:
                    self.conn_to_prev_block(b)
Esempio n. 2
0
 def __init__(self):
     Block.__init__(self, None, 2)