mirror of https://github.com/MISP/PyMISP
chg: Make mypy happy
parent
21c18ae0a5
commit
507b8195ae
|
@ -1675,13 +1675,13 @@ test = ["flaky", "ipykernel (>=6.19.3)", "ipython", "ipywidgets", "nbconvert (>=
|
|||
|
||||
[[package]]
|
||||
name = "nbconvert"
|
||||
version = "7.9.0"
|
||||
version = "7.9.1"
|
||||
description = "Converting Jupyter Notebooks"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "nbconvert-7.9.0-py3-none-any.whl", hash = "sha256:50248c86cbbfda7be6acc734427ef44b928663c95cd051e84c45f8838d78d46e"},
|
||||
{file = "nbconvert-7.9.0.tar.gz", hash = "sha256:66918deab9717af2bdb8ae1fac1b0fb5b408574b8f11b0004fa7f115c158fc7e"},
|
||||
{file = "nbconvert-7.9.1-py3-none-any.whl", hash = "sha256:94ebed2529152e01866694e924b45fb8d7dd14380ae43782ceabac1fb7f7c490"},
|
||||
{file = "nbconvert-7.9.1.tar.gz", hash = "sha256:8a688aed706da51bdd08661ecbd8e536bace88888ef5748ea53c8c996632f1e4"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
|
|
|
@ -33,7 +33,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 + [
|
||||
HTTPConnection.default_socket_options = HTTPConnection.default_socket_options + [ # type: ignore
|
||||
(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
|
||||
|
|
Loading…
Reference in New Issue