Make flake happy

This commit is contained in:
hroff-1902 2020-06-13 18:54:54 +03:00 committed by GitHub
parent 3d9b107761
commit ea77edce05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,9 +251,9 @@ class Hyperopt:
if space == 'stoploss':
params_result += f"stoploss = {space_params.get('stoploss')}"
elif space == 'roi':
minimal_roi_result = rapidjson.dumps(
# TODO: get rid of OrderedDict when support for python 3.6 will be
# dropped (dicts keep the order as the language feature)
minimal_roi_result = rapidjson.dumps(
OrderedDict(
(str(k), v) for k, v in space_params.items()
),