MCPcopy Index your code
hub / github.com/pydata/xarray / _normalize_path_list

Function _normalize_path_list

xarray/backends/common.py:189–200  ·  view source on GitHub ↗
(
        lpaths: NestedSequence[str | os.PathLike | ReadBuffer],
    )

Source from the content-addressed store, hash-verified

187 return [paths]
188
189 def _normalize_path_list(
190 lpaths: NestedSequence[str | os.PathLike | ReadBuffer],
191 ) -> NestedSequence[str | ReadBuffer]:
192 paths = []
193 for p in lpaths:
194 if isinstance(p, str | os.PathLike):
195 paths.append(_normalize_path(p))
196 elif isinstance(p, list):
197 paths.append(_normalize_path_list(p)) # type: ignore[arg-type]
198 else:
199 paths.append(p) # type: ignore[arg-type]
200 return paths
201
202 return _normalize_path_list(paths)
203

Callers 1

_find_absolute_pathsFunction · 0.85

Calls 1

_normalize_pathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…