|
51 | 51 | ssl_match_hostname = ssl.match_hostname |
52 | 52 | SSLCertificateError = ssl.CertificateError |
53 | 53 | elif ssl is None: |
54 | | - ssl_match_hostname = SSLCertificateError = None |
| 54 | + ssl_match_hostname = SSLCertificateError = None # type: ignore |
55 | 55 | else: |
56 | 56 | import backports.ssl_match_hostname |
57 | 57 | ssl_match_hostname = backports.ssl_match_hostname.match_hostname |
58 | | - SSLCertificateError = backports.ssl_match_hostname.CertificateError |
| 58 | + SSLCertificateError = backports.ssl_match_hostname.CertificateError # type: ignore |
59 | 59 |
|
60 | 60 | if hasattr(ssl, 'SSLContext'): |
61 | 61 | if hasattr(ssl, 'create_default_context'): |
|
102 | 102 | _ERRNO_WOULDBLOCK = (errno.EWOULDBLOCK, errno.EAGAIN) |
103 | 103 |
|
104 | 104 | if hasattr(errno, "WSAEWOULDBLOCK"): |
105 | | - _ERRNO_WOULDBLOCK += (errno.WSAEWOULDBLOCK,) |
| 105 | + _ERRNO_WOULDBLOCK += (errno.WSAEWOULDBLOCK,) # type: ignore |
106 | 106 |
|
107 | 107 | # Default backlog used when calling sock.listen() |
108 | 108 | _DEFAULT_BACKLOG = 128 |
@@ -411,8 +411,8 @@ class ThreadedResolver(ExecutorResolver): |
411 | 411 | All ``ThreadedResolvers`` share a single thread pool, whose |
412 | 412 | size is set by the first one to be created. |
413 | 413 | """ |
414 | | - _threadpool = None |
415 | | - _threadpool_pid = None |
| 414 | + _threadpool = None # type: ignore |
| 415 | + _threadpool_pid = None # type: int |
416 | 416 |
|
417 | 417 | def initialize(self, io_loop=None, num_threads=10): |
418 | 418 | threadpool = ThreadedResolver._create_threadpool(num_threads) |
@@ -516,4 +516,4 @@ def ssl_wrap_socket(socket, ssl_options, server_hostname=None, **kwargs): |
516 | 516 | else: |
517 | 517 | return context.wrap_socket(socket, **kwargs) |
518 | 518 | else: |
519 | | - return ssl.wrap_socket(socket, **dict(context, **kwargs)) |
| 519 | + return ssl.wrap_socket(socket, **dict(context, **kwargs)) # type: ignore |
0 commit comments