diff --git a/src/datumaro/plugins/transforms.py b/src/datumaro/plugins/transforms.py index 2d8707fd32..3a22ffb36e 100644 --- a/src/datumaro/plugins/transforms.py +++ b/src/datumaro/plugins/transforms.py @@ -661,7 +661,9 @@ def __init__(self, extractor, ensure_unique: bool = False, suffix_length: int = def _add_unique_suffix(self, name): count = 0 while name in self._names: - suffix = "".join(random.choices(self.SUFFIX_LETTERS, k=self._suffix_length)) + suffix = "".join( + 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