is_url

is_url(s: str | Path | TextIO | Any) TypeGuard[str][source]

Check if the object is a URL.