Skip to content

Commit 8afc1d8

Browse files
authored
fix two more incorrect type annotations (#1392)
1 parent 1f052cc commit 8afc1d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenSSL/SSL.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ def get_cert_store(self) -> X509Store | None:
16451645
pystore._store = store
16461646
return pystore
16471647

1648-
def set_options(self, options: int) -> None:
1648+
def set_options(self, options: int) -> int:
16491649
"""
16501650
Add options. Options set before are not cleared!
16511651
This method should be used with the :const:`OP_*` constants.
@@ -1658,7 +1658,7 @@ def set_options(self, options: int) -> None:
16581658

16591659
return _lib.SSL_CTX_set_options(self._context, options)
16601660

1661-
def set_mode(self, mode: int) -> None:
1661+
def set_mode(self, mode: int) -> int:
16621662
"""
16631663
Add modes via bitmask. Modes set before are not cleared! This method
16641664
should be used with the :const:`MODE_*` constants.

0 commit comments

Comments
 (0)