We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35d90e commit b8a9681Copy full SHA for b8a9681
adafruit_rsa/key.py
@@ -130,7 +130,7 @@ def _assert_format_exists(
130
"Unsupported format: %r, try one of %s" % (file_format, formats)
131
) from err
132
133
- def save_pkcs1(self, format: str = "PEM") -> bytes:
+ def save_pkcs1(self, format: Literal["PEM", "DER"] = "PEM") -> bytes:
134
"""Saves the key in PKCS#1 DER or PEM format.
135
136
:param str format: the format to save; 'PEM' or 'DER'
0 commit comments