Skip to content

Commit 17888d7

Browse files
committed
fix: pylint semantics
1 parent 6740b27 commit 17888d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

causal_testing/estimation/genetic_programming_regression_fitter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ def mutate(self, expression: gp.PrimitiveTree) -> gp.PrimitiveTree:
391391
392392
:return: The mutated expression.
393393
"""
394+
mutated = None
394395
choice = random.randint(1, 3)
395396
if choice == 1:
396397
mutated = gp.mutNodeReplacement(self.toolbox.clone(expression), self.pset)

0 commit comments

Comments
 (0)