Skip to content

Commit 56405fc

Browse files
authored
review fixes
1 parent 736e7d7 commit 56405fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RATapi/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def make_custom_file_dict(item):
870870
"name": item.name,
871871
"filename": item.filename,
872872
"language": item.language,
873-
"path": str(try_relative_to(item.path, filepath)),
873+
"path": try_relative_to(item.path, filepath),
874874
}
875875

876876
json_dict["custom_files"] = [make_custom_file_dict(file) for file in attr]
@@ -951,7 +951,7 @@ def wrapped_func(*args, **kwargs):
951951
return wrapped_func
952952

953953

954-
def try_relative_to(path: Path, relative_to: Path) -> Path:
954+
def try_relative_to(path: Path, relative_to: Path) -> str:
955955
"""Attempt to create a relative path and warn the user if it isn't possible.
956956
957957
Parameters
@@ -963,7 +963,7 @@ def try_relative_to(path: Path, relative_to: Path) -> Path:
963963
964964
Returns
965965
-------
966-
Path
966+
str
967967
The relative path if successful, else the absolute path.
968968
969969
"""

0 commit comments

Comments
 (0)