mirror of
https://github.com/clearml/clearml
synced 2025-05-09 23:20:37 +00:00
Fix python-fire integration (#1275)
Fixes bug when calling `__call__` method of a class via Fire (#1268)
This commit is contained in:
parent
c106155935
commit
22bbb66fe8
@ -162,7 +162,7 @@ class PatchFire:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __CallAndUpdateTrace( # noqa
|
def __CallAndUpdateTrace( # noqa
|
||||||
original_fn, component, args_, component_trace, treatment, target, *args, **kwargs
|
original_fn, component, args_, component_trace, treatment, target=None, *args, **kwargs
|
||||||
):
|
):
|
||||||
if running_remotely():
|
if running_remotely():
|
||||||
return original_fn(component, args_, component_trace, treatment, target, *args, **kwargs)
|
return original_fn(component, args_, component_trace, treatment, target, *args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user