Skip to content

Commit 4121e25

Browse files
malhotragalex
authored andcommitted
Fixes incorrect rtype in documentation (#802)
rtype for the following was incorrect: X509Req.from_cryptography X509.from_cryptography
1 parent 4183beb commit 4121e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenSSL/crypto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def from_cryptography(cls, crypto_req):
902902
:param crypto_req: A ``cryptography`` X.509 certificate signing request
903903
:type crypto_req: ``cryptography.x509.CertificateSigningRequest``
904904
905-
:rtype: PKey
905+
:rtype: X509Req
906906
907907
.. versionadded:: 17.1.0
908908
"""
@@ -1115,7 +1115,7 @@ def from_cryptography(cls, crypto_cert):
11151115
:param crypto_key: A ``cryptography`` X.509 certificate.
11161116
:type crypto_key: ``cryptography.x509.Certificate``
11171117
1118-
:rtype: PKey
1118+
:rtype: X509
11191119
11201120
.. versionadded:: 17.1.0
11211121
"""

0 commit comments

Comments
 (0)