mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Make mypy config strict and work on pre-commit
This commit is contained in:
@@ -11,7 +11,7 @@ from docker.models.containers import Container
|
||||
import pytest # type: ignore
|
||||
import requests
|
||||
|
||||
from requests.packages.urllib3.util.retry import Retry
|
||||
from urllib3.util.retry import Retry
|
||||
from requests.adapters import HTTPAdapter
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ def find_free_port() -> str:
|
||||
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
|
||||
s.bind(("", 0))
|
||||
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
return s.getsockname()[1]
|
||||
return s.getsockname()[1] # type: ignore
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
Reference in New Issue
Block a user