add path method

This commit is contained in:
Maximilian Keßler 2022-02-06 22:20:16 +01:00
parent a8303cae45
commit 75c528c3df

View file

@ -1,6 +1,6 @@
from pathlib import Path
from typing import Union, List, Optional
from ..logger import logger
from ..logger import logger
class GenericText:
@ -33,6 +33,9 @@ class GenericText:
self._content = None
self._path = content
def path(self) -> Optional[Path]:
return self._path
def format(self, **kwargs) -> str:
lines = []
for line in self._content: