We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3893049 commit 911fd5fCopy full SHA for 911fd5f
src/y0/dsl.py
@@ -303,10 +303,8 @@ class CounterfactualVariable(Variable):
303
was observed (star).
304
"""
305
306
- #: The name of the counterfactual variable
307
- name: str
308
#: The interventions on the variable. Should be non-empty
309
- interventions: Tuple[Intervention, ...]
+ interventions: Tuple[Intervention, ...] = field(default_factory=tuple)
310
311
def __post_init__(self):
312
if not self.interventions:
0 commit comments