From c997e55b5327113095ccd7327ff9d521215617f7 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Wed, 17 Jun 2020 13:39:28 -0700 Subject: [PATCH] Fix mypy type annotations --- certbot/certbot/ocsp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/certbot/certbot/ocsp.py b/certbot/certbot/ocsp.py index af6692120..d56299c61 100644 --- a/certbot/certbot/ocsp.py +++ b/certbot/certbot/ocsp.py @@ -24,7 +24,6 @@ import pytz import requests from acme.magic_typing import Optional -from acme.magic_typing import Tuple from certbot import crypto_util from certbot import errors from certbot import interfaces @@ -150,7 +149,7 @@ class RevocationChecker(object): return resp.certificate_status == interfaces.OCSPCertStatus.REVOKED def _query_prep(self, cert_path): - # type: (str) -> Tuple[Optional[str], Optional[str]] + # type: (str) -> Optional[str] """Prepare to make an OCSP query for the given cert. :param str cert_path: Certificate filepath @@ -255,7 +254,7 @@ class _CryptographyOCSPResponse(interfaces.OCSPResponse): def _determine_ocsp_server(cert_path): - # type: (str) -> Tuple[Optional[str], Optional[str]] + # type: (str) -> Optional[str] """Extract the OCSP server host from a certificate. :param str cert_path: Path to the cert we're checking OCSP for