Skip to content

Commit 050ffa3

Browse files
author
Alexander Zilberkant
committed
fix rtype for SigningKey factory methods docstrings
SigningKey.from_der - returns SigningKey SigningKey.from_pem - returns SigningKey
1 parent 333ee3f commit 050ffa3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ecdsa/keys.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,8 @@ def from_pem(cls, string, hashfunc=sha1):
867867
key failed
868868
:raises UnexpectedDER: if the encoding of the PEM file is incorrect
869869
870-
:return: Initialised VerifyingKey object
871-
:rtype: VerifyingKey
870+
:return: Initialised SigningKey object
871+
:rtype: SigningKey
872872
"""
873873
# the privkey pem may have multiple sections, commonly it also has
874874
# "EC PARAMETERS", we need just "EC PRIVATE KEY".
@@ -920,8 +920,8 @@ def from_der(cls, string, hashfunc=sha1):
920920
key failed
921921
:raises UnexpectedDER: if the encoding of the DER file is incorrect
922922
923-
:return: Initialised VerifyingKey object
924-
:rtype: VerifyingKey
923+
:return: Initialised SigningKey object
924+
:rtype: SigningKey
925925
"""
926926
string = normalise_bytes(string)
927927
s, empty = der.remove_sequence(string)

0 commit comments

Comments
 (0)