File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments