mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 11:44:11 +00:00
RSAPrivateKey certainly does have this method
I don't know why mypy fails to see it.
This commit is contained in:
parent
8c56ccad72
commit
e893d06cb3
@ -123,7 +123,7 @@ def der_string_from_signing_key(private_key: PrivateKey) -> bytes:
|
|||||||
:returns: bytes representing `private_key`
|
:returns: bytes representing `private_key`
|
||||||
"""
|
"""
|
||||||
_validate_private_key(private_key)
|
_validate_private_key(private_key)
|
||||||
return private_key.private_bytes(
|
return private_key.private_bytes( # type: ignore[attr-defined]
|
||||||
encoding=Encoding.DER,
|
encoding=Encoding.DER,
|
||||||
format=PrivateFormat.PKCS8,
|
format=PrivateFormat.PKCS8,
|
||||||
encryption_algorithm=NoEncryption(),
|
encryption_algorithm=NoEncryption(),
|
||||||
|
Loading…
Reference in New Issue
Block a user