Make mypy happy.

This commit is contained in:
Itamar Turner-Trauring 2022-03-25 15:52:31 -04:00
parent 638154b2ad
commit ae8a7eff43
3 changed files with 5 additions and 4 deletions

View File

@ -552,12 +552,12 @@ def listen_tls(
host=hostname,
port=listening_port.getHost().port,
path=(str(server._swissnum, "ascii"),),
userinfo=[
userinfo=(
str(
get_spki_hash(load_pem_x509_certificate(cert_path.read_bytes())),
"ascii",
)
],
),
),
scheme="pb",
)
return furl

View File

@ -137,7 +137,7 @@ class PinningHTTPSValidation(AsyncTestCase):
)
@asynccontextmanager
async def listen(self, private_key_path, cert_path) -> str:
async def listen(self, private_key_path, cert_path):
"""
Context manager that runs a HTTPS server with the given private key
and certificate.

View File

@ -141,6 +141,7 @@ deps =
types-six
types-PyYAML
types-pkg_resources
types-pyOpenSSL
git+https://github.com/warner/foolscap
# Twisted 21.2.0 introduces some type hints which we are not yet
# compatible with.