Skip to content

Commit 0ad2f5c

Browse files
fix(poly_simplify): set default ops to +
1 parent cb92e78 commit 0ad2f5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/mathy_python/mathy/envs/poly_simplify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class PolySimplify(MathyEnv):
2121

2222
def __init__(self, ops: List[str] = None, **kwargs):
2323
super().__init__(**kwargs)
24+
if ops is None:
25+
ops = ["+"]
2426
self.ops = ops
2527

2628
def get_env_namespace(self) -> str:

0 commit comments

Comments
 (0)