Skip to content

Commit 16f872f

Browse files
committed
style: format redirect URL validation
1 parent 2465da4 commit 16f872f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

guidance/_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def bytes_from(
5151
response = cast(http.client.HTTPResponse, response)
5252
final_url = response.geturl()
5353
if not isinstance(final_url, str):
54-
raise TypeError(
55-
f"Expected urlopen response URL to be a string, got {type(final_url).__name__}"
56-
)
54+
raise TypeError(f"Expected urlopen response URL to be a string, got {type(final_url).__name__}")
5755
if final_url != src:
5856
validate_uri(
5957
final_url,

0 commit comments

Comments
 (0)