Skip to content

Commit

Permalink
Fix args type in str
Browse files Browse the repository at this point in the history
  • Loading branch information
boehmseb committed Oct 9, 2023
1 parent 89d733a commit 7280c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchbuild/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def __repr__(self) -> str:

def __str__(self) -> str:
env_str = " ".join([f"{k}={str(v)}" for k, v in self._env.items()])
args_str = " ".join([str(arg) for arg in self._args])
args_str = " ".join(tuple([str(arg) for arg in self._args]))

Check failure on line 641 in benchbuild/command.py

View workflow job for this annotation

GitHub Actions / reviewdog

[pylint] reported by reviewdog 🐶 Consider using a generator instead 'tuple(str(arg) for arg in self._args)' (consider-using-generator) Raw Output: benchbuild/command.py:641:28: R1728: Consider using a generator instead 'tuple(str(arg) for arg in self._args)' (consider-using-generator)

command_str = f"{self._path}"
if env_str:
Expand Down

0 comments on commit 7280c24

Please sign in to comment.