We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57f5def commit 22790f1Copy full SHA for 22790f1
solc_select/infrastructure/http_client.py
@@ -5,7 +5,7 @@
5
retry logic and proper timeout handling.
6
"""
7
8
-from typing import Any, Mapping, Optional, Union
+from typing import Any, Mapping, Optional, Tuple, Union
9
10
import requests
11
from requests.adapters import HTTPAdapter
@@ -22,9 +22,9 @@ def send(
22
self,
23
request: PreparedRequest,
24
stream: bool = False,
25
- timeout: Union[float, tuple[float, float], tuple[float, None], None] = None,
+ timeout: Union[float, Tuple[float, float], Tuple[float, None], None] = None,
26
verify: Union[bool, str] = True,
27
- cert: Union[bytes, str, tuple[Union[bytes, str], Union[bytes, str]], None] = None,
+ cert: Union[bytes, str, Tuple[Union[bytes, str], Union[bytes, str]], None] = None,
28
proxies: Optional[Mapping[str, str]] = None,
29
) -> Response:
30
timeout = timeout or self.timeout
tests/utils.py
@@ -5,13 +5,15 @@
but are used across multiple test files.
+from __future__ import annotations
+
import os
import subprocess
-from typing import Any, Dict
12
+from typing import Any
13
14
15
def run_in_venv(
- venv_info: Dict[str, Any], cmd: str, check: bool = True, **kwargs: Any
16
+ venv_info: dict[str, Any], cmd: str, check: bool = True, **kwargs: Any
17
) -> subprocess.CompletedProcess[str]:
18
19
Run a command in an isolated virtual environment.
0 commit comments