remove empty kwargs
This commit is contained in:
@ -168,7 +168,7 @@ class Common:
|
||||
|
||||
def _populate_attrib(self,
|
||||
keys: dict,
|
||||
) -> None:
|
||||
) -> None: # pragma: no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@staticmethod
|
||||
@ -277,8 +277,10 @@ class Variable(Common):
|
||||
args.append(str(value))
|
||||
else:
|
||||
kwargs.append(f"'{param.name}': " + value)
|
||||
ret = f"Calculation(func.{function}, Params((" + ', '.join(args) + \
|
||||
"), kwargs=" + "{" + ', '.join(kwargs) + "})"
|
||||
ret = f'Calculation(func.{function}, Params((' + ', '.join(args) + ')'
|
||||
if kwargs:
|
||||
ret += ', kwargs={' + ', '.join(kwargs) + '}'
|
||||
ret += ')'
|
||||
if hasattr(child, 'warnings_only'):
|
||||
ret += f', warnings_only={child.warnings_only}'
|
||||
return ret + ')'
|
||||
|
Reference in New Issue
Block a user