diff --git a/stgpytools/types/file.py b/stgpytools/types/file.py index 2d86758..a1b4f14 100644 --- a/stgpytools/types/file.py +++ b/stgpytools/types/file.py @@ -4,8 +4,6 @@ from pathlib import Path from typing import TYPE_CHECKING, Any, Callable, Iterable, Literal, TypeAlias, Union -from ..functions import to_arr - __all__ = [ 'FilePathType', 'FileDescriptor', 'FileOpener', @@ -118,6 +116,8 @@ def write_lines( def append_to_stem(self, suffixes: str | Iterable[str], sep: str = '_') -> SPath: """Append a suffix to the stem of the path""" + from ..functions import to_arr + return self.with_stem(sep.join([self.stem, *to_arr(suffixes)])) # type:ignore[list-item]