Skip to content

Commit

Permalink
fix: correct type hint for operators variable in ExpressionGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanSdahl committed Dec 20, 2024
1 parent 503d6ae commit 1874f8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/arithmetics_dataset/expression_generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import random
from typing import Optional


class ExpressionGenerator:
Expand All @@ -8,7 +9,7 @@ class ExpressionGenerator:

def __init__(
self,
operators: list[str] = None,
operators: Optional[list[str]] = None,
negative_probability: float = 0.5,
parentheses_probability: float = 1.0,
):
Expand Down

0 comments on commit 1874f8f

Please sign in to comment.