Skip to content

Commit

Permalink
Merge pull request #189 from alzix/alzix/fix-docstring
Browse files Browse the repository at this point in the history
fix rtype for SigningKey factory methods docstrings
  • Loading branch information
tomato42 committed Mar 10, 2020
2 parents 333ee3f + 050ffa3 commit d3b7289
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ecdsa/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,8 @@ def from_pem(cls, string, hashfunc=sha1):
key failed
:raises UnexpectedDER: if the encoding of the PEM file is incorrect
:return: Initialised VerifyingKey object
:rtype: VerifyingKey
:return: Initialised SigningKey object
:rtype: SigningKey
"""
# the privkey pem may have multiple sections, commonly it also has
# "EC PARAMETERS", we need just "EC PRIVATE KEY".
Expand Down Expand Up @@ -920,8 +920,8 @@ def from_der(cls, string, hashfunc=sha1):
key failed
:raises UnexpectedDER: if the encoding of the DER file is incorrect
:return: Initialised VerifyingKey object
:rtype: VerifyingKey
:return: Initialised SigningKey object
:rtype: SigningKey
"""
string = normalise_bytes(string)
s, empty = der.remove_sequence(string)
Expand Down

0 comments on commit d3b7289

Please sign in to comment.