This commit is contained in:
Maximilian Keßler 2022-02-07 21:00:51 +01:00
parent e68fcb6550
commit 3af968470d

View file

@ -6,6 +6,7 @@ from ..logger import logger
class GenericText: class GenericText:
def __init__(self, content: Optional[Union[List[str], Path, str]] = None): def __init__(self, content: Optional[Union[List[str], Path, str]] = None):
# TODO: what if paths are not absolute? Have a root available?
if isinstance(content, list): if isinstance(content, list):
self._content: Optional[List[str]] = content self._content: Optional[List[str]] = content
self._path = None self._path = None