windows can't do <U as a path even hypothetically

This commit is contained in:
sneakers-the-rat 2024-10-11 00:09:39 -07:00
parent d9f785efdd
commit e87f24f9c3
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -64,7 +64,7 @@ def _relativize_paths(
``relative_to`` directory, if provided in the context
"""
relative_to = Path(relative_to).resolve()
def _r_path(v: Any) -> Any:
if not isinstance(v, (str, Path)):
return v