Fix OpenSSH public key typing.

This commit is contained in:
Felix Fontein
2026-04-01 08:23:29 +02:00
parent 13ea1de2f3
commit 4c5962788d
2 changed files with 9 additions and 8 deletions

View File

@@ -76,6 +76,9 @@ if t.TYPE_CHECKING:
KeyFormat = t.Literal["SSH", "PKCS8", "PKCS1"] # pragma: no cover
KeySerializationFormat = t.Literal["PEM", "DER", "SSH"] # pragma: no cover
KeyType = t.Literal["rsa", "dsa", "ed25519", "ecdsa"] # pragma: no cover
PubKeyType = t.Literal[
"rsa", "dsa", "ed25519", "ecdsa-nistp256", "ecdsa-nistp384", "ecdsa-nistp521"
] # pragma: no cover
PrivateKeyTypes = t.Union[ # noqa: UP007
rsa.RSAPrivateKey,