remove empty kwargs

This commit is contained in:
2021-01-24 18:18:40 +01:00
parent 5a66cb7799
commit 28ba5ef8ff
47 changed files with 51 additions and 51 deletions

View File

@ -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 + ')'