Fix python-fire integration (#1275)

Fixes bug when calling `__call__` method of a class via Fire (#1268)
This commit is contained in:
Rafael Tvelov 2024-06-05 20:12:00 +03:00 committed by GitHub
parent c106155935
commit 22bbb66fe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,7 +162,7 @@ class PatchFire:
@staticmethod
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():
return original_fn(component, args_, component_trace, treatment, target, *args, **kwargs)