Make mypy happy

This commit is contained in:
Edward Betts 2024-07-15 00:55:18 +08:00
parent 708c5d6f58
commit 87009c2247

View file

@ -36,6 +36,7 @@ class AbsoluteDNSAdapter(HTTPAdapter):
# Append a dot to the hostname if it's not already there. # Append a dot to the hostname if it's not already there.
hostname = parsed_url.host hostname = parsed_url.host
assert hostname
if not hostname.endswith("."): if not hostname.endswith("."):
hostname += "." hostname += "."