Skip to content

Commit 5abe7af

Browse files
Clean up assert statement
1 parent 96b9698 commit 5abe7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/generation/abstract_causal_test_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(
3030
effect_modifiers: set[Variable] = None,
3131
estimate_type: str = "ate",
3232
):
33-
assert {treatment_variables}.issubset(scenario.variables.values()), (
33+
assert (treatment_variables in scenario.variables.values()), (
3434
"Treatment variables must be a subset of variables."
3535
+ f" Instead got:\ntreatment_variables={treatment_variables}\nvariables={scenario.variables}"
3636
)

0 commit comments

Comments
 (0)