Skip to content

side_effects

AccessedGlobals dataclass

Represents some global variables that were retrieved or changed during this call.

Source code in lineapy/execution/side_effects.py
40
41
42
43
44
45
46
47
@dataclass
class AccessedGlobals:
    """
    Represents some global variables that were retrieved or changed during this call.
    """

    retrieved: List[str]
    added_or_updated: List[str]

ImplicitDependencyNode dataclass

Represents that the call node has an implicit dependency on another node.

Source code in lineapy/execution/side_effects.py
31
32
33
34
35
36
37
@dataclass
class ImplicitDependencyNode:
    """
    Represents that the call node has an implicit dependency on another node.
    """

    pointer: ExecutorPointer

MutatedNode dataclass

Represents that a node has been mutated.

Source code in lineapy/execution/side_effects.py
10
11
12
13
14
15
16
17
@dataclass(frozen=True)
class MutatedNode:
    """
    Represents that a node has been mutated.
    """

    # The node that was mutated, the source node
    pointer: ExecutorPointer

ViewOfNodes dataclass

Represents that a set of nodes are now "views" of each other, meaning that if any are mutated they all could be mutated.

Source code in lineapy/execution/side_effects.py
20
21
22
23
24
25
26
27
28
@dataclass
class ViewOfNodes:
    """
    Represents that a set of nodes are now "views" of each other, meaning that
    if any are mutated they all could be mutated.
    """

    # An ordered set
    pointers: List[ExecutorPointer]

Was this helpful?

Help us improve docs with your feedback!