(
lpaths: NestedSequence[str | os.PathLike | ReadBuffer],
)
| 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 |
no test coverage detected
searching dependent graphs…