def _wrap_sock(self) -> None: self.socket = cast( socket.socket, crypto_util.SSLSocket(self.socket, cert_selection=self._cert_selection, alpn_selection=getattr( self, '_alpn_selection', None), method=self.method))
def _wrap_sock(self): self.socket = crypto_util.SSLSocket(self.socket, certs=self.certs, method=self.method)