Skip to content
Prev Previous commit
fix lint checks
  • Loading branch information
spinto committed Dec 12, 2025
commit 81891c522c42bb83c9e73a8c8b01cbd81986c12f
4 changes: 3 additions & 1 deletion pystac/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ def is_absolute_href(href: str, start_href: str | None = None) -> bool:
if parsed.scheme not in ["", "file"]:
return True
else:
parsed_start_scheme = "" if start_href is None else safe_urlparse(start_href).scheme
parsed_start_scheme = (
"" if start_href is None else safe_urlparse(start_href).scheme
)
return parsed_start_scheme in ["", "file"] and os.path.isabs(parsed.path)


Expand Down