Forgot to push newsfragment

This commit is contained in:
dlee 2023-02-03 16:48:06 -06:00
parent 7f3af6a8ed
commit e2e33933a8
2 changed files with 2 additions and 1 deletions

1
newsfragments/3971.minor Normal file
View File

@ -0,0 +1 @@
Changes made to mypy.ini to make mypy more 'strict' and prevent future regressions.

View File

@ -127,7 +127,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( # type: ignore[attr-defined]
return private_key.private_bytes(
encoding=Encoding.DER,
format=PrivateFormat.PKCS8,
encryption_algorithm=NoEncryption(),