Get the normalized prefix to strip from paths, with trailing /.
(lib_prefix: str)
| 1174 | |
| 1175 | @functools.cache |
| 1176 | def _lib_prefix_stripped(lib_prefix: str) -> str: |
| 1177 | """Get the normalized prefix to strip from paths, with trailing /.""" |
| 1178 | # e.g. "Lib" -> "Lib/", "./Lib" -> "Lib/", "../Lib" -> "../Lib/" |
| 1179 | return pathlib.Path(lib_prefix).as_posix().rstrip("/") + "/" |
| 1180 | |
| 1181 | |
| 1182 | def _lookup_last_updated(paths: list[str], lib_prefix: str) -> str | None: |
no test coverage detected