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 return self._root_dir
@property @property
def relative_path(self): def relative_path(self) -> Path:
try: try:
return self.relative_to(self._root_dir) return self.relative_to(self._root_dir)
except ValueError as e: except ValueError as e: