chg: Make mypy happy

pull/1075/head
Raphaël Vinot 2023-10-04 15:13:44 +02:00
parent 21c18ae0a5
commit 507b8195ae
2 changed files with 4 additions and 4 deletions

6
poetry.lock generated
View File

@ -1675,13 +1675,13 @@ test = ["flaky", "ipykernel (>=6.19.3)", "ipython", "ipywidgets", "nbconvert (>=
[[package]] [[package]]
name = "nbconvert" name = "nbconvert"
version = "7.9.0" version = "7.9.1"
description = "Converting Jupyter Notebooks" description = "Converting Jupyter Notebooks"
optional = false optional = false
python-versions = ">=3.8" python-versions = ">=3.8"
files = [ files = [
{file = "nbconvert-7.9.0-py3-none-any.whl", hash = "sha256:50248c86cbbfda7be6acc734427ef44b928663c95cd051e84c45f8838d78d46e"}, {file = "nbconvert-7.9.1-py3-none-any.whl", hash = "sha256:94ebed2529152e01866694e924b45fb8d7dd14380ae43782ceabac1fb7f7c490"},
{file = "nbconvert-7.9.0.tar.gz", hash = "sha256:66918deab9717af2bdb8ae1fac1b0fb5b408574b8f11b0004fa7f115c158fc7e"}, {file = "nbconvert-7.9.1.tar.gz", hash = "sha256:8a688aed706da51bdd08661ecbd8e536bace88888ef5748ea53c8c996632f1e4"},
] ]
[package.dependencies] [package.dependencies]

View File

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