Skip to content

Commit 8af8f09

Browse files
committed
fix typing
1 parent 750a9aa commit 8af8f09

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pymongo/ssl_support.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,13 @@
5656

5757
if HAVE_PYSSL:
5858
PYSSLError: Any = _pyssl.SSLError
59-
BLOCKING_IO_ERRORS: Any = _ssl.BLOCKING_IO_ERRORS + _pyssl.BLOCKING_IO_ERRORS
60-
BLOCKING_IO_READ_ERROR: Any = _pyssl.BLOCKING_IO_READ_ERROR | _ssl.BLOCKING_IO_READ_ERROR
61-
BLOCKING_IO_WRITE_ERROR: Any = _pyssl.BLOCKING_IO_WRITE_ERROR | _ssl.BLOCKING_IO_WRITE_ERROR
59+
BLOCKING_IO_ERRORS: tuple = _ssl.BLOCKING_IO_ERRORS + _pyssl.BLOCKING_IO_ERRORS
60+
BLOCKING_IO_READ_ERROR: Any = Union[
61+
_pyssl.BLOCKING_IO_READ_ERROR, _ssl.BLOCKING_IO_READ_ERROR
62+
]
63+
BLOCKING_IO_WRITE_ERROR: Any = Union[
64+
_pyssl.BLOCKING_IO_WRITE_ERROR, _ssl.BLOCKING_IO_WRITE_ERROR
65+
]
6266
else:
6367
PYSSLError = _ssl.SSLError
6468
BLOCKING_IO_ERRORS = _ssl.BLOCKING_IO_ERRORS

0 commit comments

Comments
 (0)