chore: fix mypy error
This commit is contained in:
@@ -25,7 +25,7 @@ class SKDecimal(FloatDistribution):
|
|||||||
if decimals is None and step is None:
|
if decimals is None and step is None:
|
||||||
raise ValueError("You must set one of decimals or step")
|
raise ValueError("You must set one of decimals or step")
|
||||||
# Convert decimals to step
|
# Convert decimals to step
|
||||||
self.step = step or 1 / 10**decimals
|
self.step = step or (1 / 10**decimals if decimals else 1)
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
|||||||
Reference in New Issue
Block a user