mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
fix: Hyperopt-magic - allow parent classes within the same file
This commit is contained in:
@@ -122,7 +122,8 @@ class HyperOptimizer:
|
||||
"""
|
||||
for modules in bases:
|
||||
if modules.__name__ != "IStrategy":
|
||||
cloudpickle.register_pickle_by_value(sys.modules[modules.__module__])
|
||||
if mod := sys.modules.get(modules.__module__):
|
||||
cloudpickle.register_pickle_by_value(mod)
|
||||
self.hyperopt_pickle_magic(modules.__bases__)
|
||||
|
||||
def _get_params_dict(
|
||||
|
||||
Reference in New Issue
Block a user