Skip to content

Commit cf62121

Browse files
committed
Fix type hints for change to httpx
1 parent 3bafb5a commit cf62121

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gvm/protocols/http/core/connector.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class HttpApiConnector:
2323
def _new_client(
2424
cls,
2525
server_ca_path: Optional[str] = None,
26-
client_cert_paths: Optional[Union[str, Tuple[str]]] = None,
26+
client_cert_paths: Optional[Union[str, Tuple[str, str]]] = None,
2727
):
2828
"""
2929
Creates a new httpx client
@@ -51,7 +51,7 @@ def __init__(
5151
base_url: str,
5252
*,
5353
server_ca_path: Optional[str] = None,
54-
client_cert_paths: Optional[Union[str, Tuple[str]]] = None,
54+
client_cert_paths: Optional[Union[str, Tuple[str, str]]] = None,
5555
):
5656
"""
5757
Create a new HTTP API Connector.

gvm/protocols/http/core/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def from_requests_lib(cls: Type[Self], r: Response) -> "HttpResponse":
5050
A non-empty body will be parsed accordingly.
5151
"""
5252
ct = ContentType.from_string(r.headers.get("content-type"))
53-
body = r.content
53+
body: Optional[bytes] = r.content
5454

5555
if r.content == b"":
5656
body = None

0 commit comments

Comments
 (0)