From e893d06cb35fd7c32a8682b3f538086c663f30de Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Fri, 6 Jan 2023 21:00:21 -0500 Subject: [PATCH] RSAPrivateKey certainly does have this method I don't know why mypy fails to see it. --- src/allmydata/crypto/rsa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/crypto/rsa.py b/src/allmydata/crypto/rsa.py index c21b522cd..3ad893dbf 100644 --- a/src/allmydata/crypto/rsa.py +++ b/src/allmydata/crypto/rsa.py @@ -123,7 +123,7 @@ def der_string_from_signing_key(private_key: PrivateKey) -> bytes: :returns: bytes representing `private_key` """ _validate_private_key(private_key) - return private_key.private_bytes( + return private_key.private_bytes( # type: ignore[attr-defined] encoding=Encoding.DER, format=PrivateFormat.PKCS8, encryption_algorithm=NoEncryption(),