File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ def join_paths_ignoring_empty(*components):
132132
133133def relativize_unchecked (path , start ):
134134 """
135+ Calculates a naïve relative path from a `start` path to `path`.
136+
135137 Prefer `paths.relativize(...)` from skylib over this function. This function
136138 unconditionally attempts to establish a relative path between two paths,
137139 regardless of whether or not the path is under the source. It is inherently
@@ -140,6 +142,9 @@ def relativize_unchecked(path, start):
140142 Args:
141143 path: The path to relativize, as the destination.
142144 start: The path to relativize against, as the source.
145+
146+ Returns:
147+ A path string.
143148 """
144149 segments = paths .normalize (path ).split ("/" )
145150 start_segments = paths .dirname (paths .normalize (start )).split ("/" )
You can’t perform that action at this time.
0 commit comments