add typing annotation

This commit is contained in:
Maximilian Keßler 2022-02-08 23:34:04 +01:00
parent 288d2cdef4
commit 7318c9380d

View file

@ -54,7 +54,7 @@ class RelativePath:
return self._root_dir
@property
def relative_path(self):
def relative_path(self) -> Path:
try:
return self.relative_to(self._root_dir)
except ValueError as e: