Skip to content

Commit 9a82172

Browse files
committed
Pylint
1 parent c38706d commit 9a82172

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

causal_testing/specification/causal_dag.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,19 @@ def __init__(self, dot_path: str = None, ignore_cycles: bool = False, **attr):
152152
raise nx.HasACycle("Invalid Causal DAG: contains a cycle.")
153153

154154
@property
155-
def nodes(self):
155+
def nodes(self) -> list:
156+
"""
157+
Get the nodes of the DAG.
158+
:returns: The nodes of the DAG.
159+
"""
156160
return self.graph.nodes
157161

158162
@property
159-
def edges(self):
163+
def edges(self) -> list:
164+
"""
165+
Get the edges of the DAG.
166+
:returns: The edges of the DAG.
167+
"""
160168
return self.graph.edges
161169

162170
def check_iv_assumptions(self, treatment, outcome, instrument) -> bool:

0 commit comments

Comments
 (0)