chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-02-03 21:56:35 -08:00
parent a38ce75eda
commit 3adfa29f7d
56 changed files with 141 additions and 216 deletions

View File

@@ -42,6 +42,7 @@ def validate_url(url: Union[str, Sequence[str]]):
else:
return False
def safe_validate_urls(url: Sequence[str]) -> Sequence[str]:
valid_urls = []
for u in url:
@@ -52,6 +53,7 @@ def safe_validate_urls(url: Sequence[str]) -> Sequence[str]:
continue
return valid_urls
def resolve_hostname(hostname):
# Get address information
addr_info = socket.getaddrinfo(hostname, None)