diff --git a/src/datumaro/plugins/transforms.py b/src/datumaro/plugins/transforms.py index 3a22ffb36e..4b13f40580 100644 --- a/src/datumaro/plugins/transforms.py +++ b/src/datumaro/plugins/transforms.py @@ -662,8 +662,8 @@ def _add_unique_suffix(self, name): count = 0 while name in self._names: suffix = "".join( - random.choices(self.SUFFIX_LETTERS, k=self._suffix_length) - ) # nosec B311 + random.choices(self.SUFFIX_LETTERS, k=self._suffix_length) # nosec B311 + ) new_name = f"{name}__{suffix}" if new_name not in self._names: name = new_name