From b4d0e5b660f028c41cf49393832c9cf5a7cb01bb Mon Sep 17 00:00:00 2001 From: Alexander Prinzhorn Date: Wed, 7 Apr 2021 18:22:54 +0200 Subject: [PATCH] keyinfo typing (#4552) --- mitmproxy/certs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/certs.py b/mitmproxy/certs.py index afe1bca3b..69f12ffef 100644 --- a/mitmproxy/certs.py +++ b/mitmproxy/certs.py @@ -101,7 +101,7 @@ class Cert(serializable.Serializable): return self._cert.serial_number @property - def keyinfo(self): + def keyinfo(self) -> Tuple[str, int]: public_key = self._cert.public_key() if isinstance(public_key, rsa.RSAPublicKey): return "RSA", public_key.key_size