Skip to content

Commit 575c381

Browse files
authored
chore: fix mypy error
1 parent 87061bc commit 575c381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/optimize/space/decimalspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(
2525
if decimals is None and step is None:
2626
raise ValueError("You must set one of decimals or step")
2727
# Convert decimals to step
28-
self.step = step or 1 / 10**decimals
28+
self.step = step or (1 / 10**decimals if decimals else 1)
2929
self.name = name
3030

3131
super().__init__(

0 commit comments

Comments
 (0)