MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / __init__

Method __init__

functional/lineage.py:10–25  ·  view source on GitHub ↗

Construct an empty lineage if prior_lineage is None or if its not use it as the list of current transformations :param prior_lineage: Lineage object to inherit :return: new Lineage object

(self, prior_lineage=None, engine=None)

Source from the content-addressed store, hash-verified

8 """
9
10 def __init__(self, prior_lineage=None, engine=None):
11 """
12 Construct an empty lineage if prior_lineage is None or if its not use it as the list of
13 current transformations
14
15 :param prior_lineage: Lineage object to inherit
16 :return: new Lineage object
17 """
18 self.transformations = (
19 [] if prior_lineage is None else list(prior_lineage.transformations)
20 )
21 self.engine = (
22 (engine or ExecutionEngine())
23 if prior_lineage is None
24 else prior_lineage.engine
25 )
26
27 def __repr__(self):
28 """

Callers

nothing calls this directly

Calls 1

ExecutionEngineClass · 0.90

Tested by

no test coverage detected