mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
chore: simplify iResolver
This commit is contained in:
@@ -149,9 +149,7 @@ class IResolver:
|
|||||||
continue
|
continue
|
||||||
module_path = entry.resolve()
|
module_path = entry.resolve()
|
||||||
|
|
||||||
obj = next(cls._get_valid_object(module_path, object_name), None)
|
if obj := next(cls._get_valid_object(module_path, object_name), None):
|
||||||
|
|
||||||
if obj:
|
|
||||||
obj[0].__file__ = str(entry)
|
obj[0].__file__ = str(entry)
|
||||||
if add_source:
|
if add_source:
|
||||||
obj[0].__source__ = obj[1]
|
obj[0].__source__ = obj[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user