fix: Make mypy happy

pull/1304/head
Raphaël Vinot 2024-09-14 15:58:27 +02:00
parent e9fa05583b
commit 865a8a50ca
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ if sys.platform == 'linux':
# Enable TCP keepalive by default on every requests
import socket
from urllib3.connection import HTTPConnection
HTTPConnection.default_socket_options = HTTPConnection.default_socket_options + [ # type: ignore
HTTPConnection.default_socket_options = HTTPConnection.default_socket_options + [
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), # enable keepalive
(socket.SOL_TCP, socket.TCP_KEEPIDLE, 30), # Start pinging after 30s of idle time
(socket.SOL_TCP, socket.TCP_KEEPINTVL, 10), # ping every 10s