Ensure path is a Path object.
(path: str | Path)
| 220 | |
| 221 | |
| 222 | def _ensure_path(path: str | Path) -> Path: |
| 223 | """Ensure path is a Path object.""" |
| 224 | if not isinstance(path, Path): |
| 225 | path = Path(path) |
| 226 | return path |
no outgoing calls
no test coverage detected
searching dependent graphs…