Skip to content

Commit 911fd5f

Browse files
committed
Update field usage
1 parent 3893049 commit 911fd5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/y0/dsl.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,8 @@ class CounterfactualVariable(Variable):
303303
was observed (star).
304304
"""
305305

306-
#: The name of the counterfactual variable
307-
name: str
308306
#: The interventions on the variable. Should be non-empty
309-
interventions: Tuple[Intervention, ...]
307+
interventions: Tuple[Intervention, ...] = field(default_factory=tuple)
310308

311309
def __post_init__(self):
312310
if not self.interventions:

0 commit comments

Comments
 (0)